mirror of
https://github.com/vvzvlad/vestasync.git
synced 2024-11-05 06:49:11 +03:00
add pullscripts (test mode)
This commit is contained in:
parent
a91f3a9989
commit
99e8927afd
9
files/pullgit.service
Normal file
9
files/pullgit.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Pull git changes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/pullgit.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
6
files/pullgit.sh
Normal file
6
files/pullgit.sh
Normal file
@ -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
|
10
files/pullgit.timer
Normal file
10
files/pullgit.timer
Normal file
@ -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…
Reference in New Issue
Block a user