Document some script + centralize script configuration

This commit is contained in:
nemunaire 2014-11-19 18:29:46 +01:00
commit 96805a5e1b
7 changed files with 48 additions and 14 deletions

View file

@ -1,12 +1,16 @@
#!/bin/sh
# This script does all actions in backend production environment
rm -f /tmp/stop
cd `dirname "$0"`
source config.sh
if [ "$UID" = "0" ]
then
SCRIPT=`pwd`/`basename "$0"`
su -c "sh $SCRIPT" synchro
su -c "sh $SCRIPT" "$SYNCHRO_USER"
exit $?
fi