From a1d7623c10dce77b996a450f4997f5fd0c59a1fe Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 16 Apr 2023 14:09:29 +0700 Subject: [PATCH] move files --- apply_macs.service => files/apply_macs.service | 0 apply_macs.sh => files/apply_macs.sh | 0 pushgit.service => files/pushgit.service | 0 pushgit.sh => files/pushgit.sh | 0 pushgit.timer => files/pushgit.timer | 0 vestasync.py | 10 +++++----- 6 files changed, 5 insertions(+), 5 deletions(-) rename apply_macs.service => files/apply_macs.service (100%) rename apply_macs.sh => files/apply_macs.sh (100%) rename pushgit.service => files/pushgit.service (100%) rename pushgit.sh => files/pushgit.sh (100%) rename pushgit.timer => files/pushgit.timer (100%) 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")