aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/prep-auto-build-upload
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-01-08 15:16:58 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2013-01-08 15:16:58 +0000
commitb2a60d686c8734999dfd65d6d84effea25a0a759 (patch)
treebb1c07ca736f0841730a6a534b1c0ed3f675c6f0 /scripts/auto-build/prep-auto-build-upload
parentad3dc5d6847deff3a7b86284044962c7099727af (diff)
only chmod files that need to be chmodded
in order to allow backups check the ctime field svn path=/trunk/; revision=16841
Diffstat (limited to 'scripts/auto-build/prep-auto-build-upload')
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload
index 3757d65c..9efdb340 100755
--- a/scripts/auto-build/prep-auto-build-upload
+++ b/scripts/auto-build/prep-auto-build-upload
@@ -12,10 +12,12 @@ 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
+mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
+mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1
+
+find "${BUILD_ROOT}" -not -perm -a+r -exec chmod a+r \{\} \; >> ${LOGFILE} 2>&1
+find "${BUILD_ROOT}" -perm /a+w -exec chmod a-w \{\} \; >> ${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