first image: git auto puller
This commit is contained in:
9
sites/005-hugo-extended/git-auto-pull/pull.sh
Normal file
9
sites/005-hugo-extended/git-auto-pull/pull.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
LOG=/var/log/pull.log
|
||||
touch $LOG
|
||||
echo `date`": start pulling" >> $LOG
|
||||
cd /repo && git pull
|
||||
echo `date`": done" >> $LOG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user