From f988ab2ca2258f3cb87c755a37291c7509a0f7b4 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 16 Apr 2023 14:12:47 +0700 Subject: [PATCH] mode and change path --- files/pushgit.service | 4 ++-- files/pushgit.timer | 6 +++--- vestasync.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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}")