diff options
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 |