mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
b5938: tweak syncgit to be optionally parameterised
This commit is contained in:
1 parent
411de979f3
commit
e283a86530
1 file changed
+6
-2
@@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
ADMIN_EMAIL="axel.uhl@sap.com jan.hamann@sapsailing.com"
|
||||
|
||||
cd /home/wiki/gitwiki
|
||||
if [ $# -eq 0 ]; then
|
||||
GIT_PATH="/home/wiki/gitwiki"
|
||||
else
|
||||
GIT_PATH=$1
|
||||
fi
|
||||
cd $GIT_PATH
|
||||
git pull >/tmp/wiki-git.out 2>/tmp/wiki-git.err
|
||||
if [ "$?" != "0" ]; then
|
||||
cat /tmp/wiki-git.out /tmp/wiki-git.err | mail -s "Wiki git problem" $ADMIN_EMAIL
|
||||
|
||||
Reference in new issue
Block a user