aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-xscripts/auto-build/run-automated-builder9
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"