diff --git a/apply_macs.service b/files/apply_macs.service similarity index 100% rename from apply_macs.service rename to files/apply_macs.service diff --git a/apply_macs.sh b/files/apply_macs.sh similarity index 100% rename from apply_macs.sh rename to files/apply_macs.sh diff --git a/pushgit.service b/files/pushgit.service similarity index 100% rename from pushgit.service rename to files/pushgit.service diff --git a/pushgit.sh b/files/pushgit.sh similarity index 100% rename from pushgit.sh rename to files/pushgit.sh diff --git a/pushgit.timer b/files/pushgit.timer similarity index 100% rename from pushgit.timer rename to files/pushgit.timer diff --git a/vestasync.py b/vestasync.py index 9cd38a9..d4ef56c 100755 --- a/vestasync.py +++ b/vestasync.py @@ -100,20 +100,20 @@ def init_repo(c): def create_automac_systemd(c): apply_macs_script_path = "/usr/local/bin/apply_macs.sh" - c.put("apply_macs.sh", apply_macs_script_path) + c.put("./files/apply_macs.sh", apply_macs_script_path) c.run(f"chmod +x {apply_macs_script_path}") - c.put("apply_macs.service", "/etc/systemd/system/apply_macs.service") + c.put("./files/apply_macs.service", "/etc/systemd/system/apply_macs.service") c.run("systemctl daemon-reload") c.run("systemctl enable apply_macs.service") def create_autogit_systemd(c): pushgit_script_path = "/mnt/data/etc/pushgit.sh" - c.put("pushgit.sh", pushgit_script_path) + c.put("./files/pushgit.sh", pushgit_script_path) c.run(f"chmod +x {pushgit_script_path}") - c.put("pushgit.service", "/etc/systemd/system/pushgit.service") - c.put("pushgit.timer", "/etc/systemd/system/pushgit.timer") + c.put("./files/pushgit.service", "/etc/systemd/system/pushgit.service") + c.put("./files/pushgit.timer", "/etc/systemd/system/pushgit.timer") c.run("systemctl daemon-reload") c.run("systemctl enable pushgit.timer")