diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-01-08 15:16:58 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2013-01-08 15:16:58 +0000 |
commit | b2a60d686c8734999dfd65d6d84effea25a0a759 (patch) | |
tree | bb1c07ca736f0841730a6a534b1c0ed3f675c6f0 /scripts/auto-build/prep-auto-build-upload | |
parent | ad3dc5d6847deff3a7b86284044962c7099727af (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-x | scripts/auto-build/prep-auto-build-upload | 10 |
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 |