add pullscripts (test mode)

master
vvzvlad 1 year ago
parent a91f3a9989
commit 99e8927afd

@ -0,0 +1,9 @@
[Unit]
Description=Pull git changes
[Service]
Type=oneshot
ExecStart=/usr/local/bin/pullgit.sh
[Install]
WantedBy=multi-user.target

@ -0,0 +1,6 @@
#!/usr/bin/env sh
git config --global user.name vestasync_wb_$(hostname)
git config --global user.email "vestasync@fake.mail"
cd /mnt/data/etc/
git fetch > /dev/null 2>&1 || true
git pull > /dev/null 2>&1 || true

@ -0,0 +1,10 @@
[Unit]
Description=Run pullgit.service every 10 min
[Timer]
OnCalendar=*:0/10
Persistent=true
Unit=pullgit.service
[Install]
WantedBy=timers.target
Loading…
Cancel
Save