Can precise a tempdir to gen_site.pl to use another directory instead of TMPDIR

This commit is contained in:
nemunaire 2015-01-14 12:36:31 +01:00 committed by Nemunaire
commit d422fe8b64
2 changed files with 15 additions and 3 deletions

View file

@ -22,7 +22,7 @@ KP1=$!
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 -T /dev/shm -s /tmp/scheduler.sock -bt /challenge/ -ba /challenge-admin/ -o ./out ERRORS HOME all DS &
KP2=$!
trap "kill $KP1 $KP2; rm -rf '$TMPF'; echo; kill $$" INT TERM