mode and change path

This commit is contained in:
vvzvlad 2023-04-16 14:12:47 +07:00
parent a1d7623c10
commit f988ab2ca2
3 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
[Unit] [Unit]
Description=Push git changes daily Description=Push git changes
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/mnt/data/etc/pushgit.sh ExecStart=/usr/local/bin/pushgit.sh
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -1,10 +1,10 @@
[Unit] [Unit]
Description=Run pushgit.service daily Description=Run pushgit.service
[Timer] [Timer]
OnCalendar=daily OnCalendar=*:0/10
Persistent=true Persistent=true
Unit=pushgit.service Unit=pushgit.service
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target

View File

@ -108,7 +108,7 @@ def create_automac_systemd(c):
c.run("systemctl enable apply_macs.service") c.run("systemctl enable apply_macs.service")
def create_autogit_systemd(c): 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.put("./files/pushgit.sh", pushgit_script_path)
c.run(f"chmod +x {pushgit_script_path}") c.run(f"chmod +x {pushgit_script_path}")