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"` cd `dirname "$0"`
source config.sh . ./config.sh
chown "$SYNCHRO_USER" "$TO_BCKP" chown "$SYNCHRO_USER" "$TO_BCKP"

View file

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

View file

@ -5,7 +5,7 @@
rm -f /tmp/stop rm -f /tmp/stop
cd `dirname "$0"` cd `dirname "$0"`
source config.sh . ./config.sh
if [ "$UID" = "0" ] if [ "$UID" = "0" ]
then then
@ -25,7 +25,7 @@ TMPF=`mktemp`
tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/scheduler.sock -o ./out ERRORS HOME all DS & tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/scheduler.sock -o ./out ERRORS HOME all DS &
KP2=$! 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 ]; while ! [ -f /tmp/stop ];
do do

View file

@ -5,7 +5,7 @@
rm -f /tmp/stop rm -f /tmp/stop
cd `dirname "$0"` cd `dirname "$0"`
source config.sh . ./config.sh
if [ "$UID" = "0" ] if [ "$UID" = "0" ]
then 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 & tail -f "$TMPF" | ./gen_site.pl -d -s /tmp/scheduler.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
KP2=$! 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 ]; while ! [ -f /tmp/stop ];
do do

View file

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