diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-08-07 20:11:08 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-08-07 20:11:08 +0000 |
commit | d44d52c6c0adf2b49d17fccb5b3741fe304dbecb (patch) | |
tree | 71dff4e069a8ec600dda373d5ed8ebbc43819b2d | |
parent | 63ebd3c49e4d277a361b5bcee706c63fc1ad8102 (diff) |
make sure the script is executable before trying to run it
svn path=/trunk/; revision=5498
-rwxr-xr-x | scripts/auto-build/run-automated-builder | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index a0269f3d..bed1e541 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -10,10 +10,13 @@ run_build_script () { distro=$1 - LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${distro}_-_${SYSTEM}.txt - touch ${LOGFILE} + LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SYSTEM}_-_${distro}_-_${SCRIPT}.txt + touch ${LOGFILE} - su - pd -c /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh >> $LOGFILE 2>&1 + chmod a+x /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh\ + >> $LOGFILE 2>&1 + su pd -c /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh\ + >> $LOGFILE 2>&1 # send status report SUBJECT="$HOSTNAME Pd-$SYSTEM $distro build results $DATE $TIME" |