aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-22 18:12:58 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-22 18:12:58 +0000
commitbbbc57756c00f26cdfacf42d53d0a7f844a4c3ef (patch)
treeb7a0f570eb085ab9df56c9874c9d65ca9a13b1f1 /scripts
parent42f650de364de7f858d43827ee3bc2976d4085ac (diff)
added 'latest' link
svn path=/trunk/; revision=5711
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload
index d98d4fbd..1844e2e7 100755
--- a/scripts/auto-build/prep-auto-build-upload
+++ b/scripts/auto-build/prep-auto-build-upload
@@ -12,10 +12,13 @@ LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
BUILD_ROOT="/var/www/auto-build"
TODAYS_ROOT="${BUILD_ROOT}/${DATE}"
-chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1
-mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
-mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
-chown -R nobody.nogroup "${TODAYS_ROOT}" >> $LOGFILE 2>&1
+chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1
+mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
+mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
+chown -R nobody.nogroup "${TODAYS_ROOT}" >> $LOGFILE 2>&1
-chown -R pd.pd /home/pd/ >> $LOGFILE 2>&1
-chmod -R u+rw /home/pd/ >> $LOGFILE 2>&1
+rm -f -- ${BUILD_ROOT}/latest >> $LOGFILE 2>&1
+ln -s ${TODAYS_ROOT} ${BUILD_ROOT}/latest >> $LOGFILE 2>&1
+
+chown -R pd.pd /home/pd/ >> $LOGFILE 2>&1
+chmod -R u+rw /home/pd/ >> $LOGFILE 2>&1