aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-11-20 04:59:32 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-11-20 04:59:32 +0000
commit1ec1dd7ed23d08786f59729e377dc0333d828596 (patch)
treeaca25b9a8a34e8a96e5077c74fe90cb5f8d3f237
parentc91fa2c0a97898bce82329a0ce419fbbf40b9fd4 (diff)
make sure the root auto-build/ folder is writable before creating the daily folder
svn path=/trunk/; revision=16563
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload
index 6f252e48..22ad74c7 100755
--- a/scripts/auto-build/prep-auto-build-upload
+++ b/scripts/auto-build/prep-auto-build-upload
@@ -10,9 +10,12 @@ LOGFILE=/tmp/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
BUILD_ROOT=/home/apt/www/auto-build
TODAYS_ROOT="${BUILD_ROOT}/${DATE}"
+
+chmod u+w "$BUILD_ROOT" >> $LOGFILE 2>&1
mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
chmod -R a+r "${BUILD_ROOT}" >> $LOGFILE 2>&1
chmod -R a-w "${BUILD_ROOT}" >> $LOGFILE 2>&1
chmod 0755 "${TODAYS_ROOT}" >> $LOGFILE 2>&1
chmod 0755 "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
+chmod a-w "$BUILD_ROOT" >> $LOGFILE 2>&1