mirror of
https://github.com/vvzvlad/vestasync.git
synced 2024-12-26 12:11:00 +03:00
mode and change path
This commit is contained in:
parent
a1d7623c10
commit
f988ab2ca2
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user