Updated pathing
This commit is contained in:
@@ -7,13 +7,15 @@ import os
|
||||
|
||||
# ================= CONFIG =================
|
||||
|
||||
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
|
||||
|
||||
SCRIPTS = [
|
||||
"backup_configs.sh",
|
||||
"backup_home.sh",
|
||||
"backup_vms.sh",
|
||||
SCRIPT_DIR / "backup_configs.sh",
|
||||
SCRIPT_DIR / "backup_home.sh",
|
||||
SCRIPT_DIR / "backup_vms.sh",
|
||||
]
|
||||
|
||||
LOG_DIR = "job-runner"
|
||||
LOG_DIR = SCRIPT_DIR / "job-runner"
|
||||
|
||||
# ==========================================
|
||||
|
||||
@@ -34,7 +36,7 @@ def run_script(script_path, run_ts):
|
||||
|
||||
with open(out_file, "wb") as out, open(err_file, "wb") as err:
|
||||
proc = subprocess.Popen(
|
||||
["/bin/bash", script_path],
|
||||
["/bin/bash", str(script_path)],
|
||||
stdout=out,
|
||||
stderr=err,
|
||||
env={
|
||||
|
||||
Reference in New Issue
Block a user