From b2a60d686c8734999dfd65d6d84effea25a0a759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 8 Jan 2013 15:16:58 +0000 Subject: only chmod files that need to be chmodded in order to allow backups check the ctime field svn path=/trunk/; revision=16841 --- scripts/auto-build/prep-auto-build-upload | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/auto-build/prep-auto-build-upload') 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 -- cgit v1.2.1