Various script fixes

This commit is contained in:
Némunaire 2015-01-13 08:13:49 +01:00 committed by Nemunaire
parent d4e0f49668
commit 7ac1fdcf07
5 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@
cd `dirname "$0"`
source config.sh
. ./config.sh
chown "$SYNCHRO_USER" "$TO_BCKP"

View File

@ -4,7 +4,7 @@
cd `dirname "$0"`
source config.sh
. ./config.sh
for n in "$@"
do

View File

@ -5,7 +5,7 @@
rm -f /tmp/stop
cd `dirname "$0"`
source config.sh
. ./config.sh
if [ "$UID" = "0" ]
then
@ -25,7 +25,7 @@ TMPF=`mktemp`
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/scheduler.sock -o ./out ERRORS HOME all DS &
KP2=$!
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo" SIGINT SIGTERM
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo; kill $$" INT TERM
while ! [ -f /tmp/stop ];
do

View File

@ -5,7 +5,7 @@
rm -f /tmp/stop
cd `dirname "$0"`
source config.sh
. ./config.sh
if [ "$UID" = "0" ]
then
@ -25,7 +25,7 @@ TMPF=`mktemp`
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/scheduler.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
KP2=$!
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo" SIGINT SIGTERM
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo; kill $$" INT TERM
while ! [ -f /tmp/stop ];
do

View File

@ -5,7 +5,7 @@
cd `dirname "$0"`
source config.sh
. ./config.sh
if [ "$UID" = "0" ]
then