diff --git a/files/pushgit.service b/files/pushgit.service index 5ee85f9..fc0353b 100644 --- a/files/pushgit.service +++ b/files/pushgit.service @@ -1,9 +1,9 @@ [Unit] -Description=Push git changes daily +Description=Push git changes [Service] Type=oneshot -ExecStart=/mnt/data/etc/pushgit.sh +ExecStart=/usr/local/bin/pushgit.sh [Install] WantedBy=multi-user.target diff --git a/files/pushgit.timer b/files/pushgit.timer index 97f8758..809489a 100644 --- a/files/pushgit.timer +++ b/files/pushgit.timer @@ -1,10 +1,10 @@ [Unit] -Description=Run pushgit.service daily +Description=Run pushgit.service [Timer] -OnCalendar=daily +OnCalendar=*:0/10 Persistent=true Unit=pushgit.service [Install] -WantedBy=timers.target \ No newline at end of file +WantedBy=timers.target diff --git a/vestasync.py b/vestasync.py index d4ef56c..2203b9a 100755 --- a/vestasync.py +++ b/vestasync.py @@ -108,7 +108,7 @@ def create_automac_systemd(c): c.run("systemctl enable apply_macs.service") def create_autogit_systemd(c): - pushgit_script_path = "/mnt/data/etc/pushgit.sh" + pushgit_script_path = "/usr/local/bin/pushgit.sh" c.put("./files/pushgit.sh", pushgit_script_path) c.run(f"chmod +x {pushgit_script_path}")