Fix the setting of pool files permissions

Fix was incorrectly placed between main rsync and status code
check, so rearranging it properly.

Closes-bug: #1510976
Change-Id: I37892d7803a8590d643ea8fc37f525fd7637a997
This commit is contained in:
Vitaly Parakhin 2015-10-28 13:16:49 +02:00 committed by Sergey Kulanov
parent 95cd15286f
commit 5a902c79be
1 changed files with 3 additions and 3 deletions

View File

@ -514,9 +514,6 @@ rsync --verbose --out-format="%i %n" --stats \
--bwlimit=5192 \
"${UPSTREAM}::${UPSTREAM_DIR}/" "$LOCAL_DIR" | tee "$rsync_log"
# fix directory permissions for pool files
find "$LOCAL_DIR" -type d -exec chmod 755 {} \;
# --files-from="$files_to_dl_list" \--block-size=8192
#--max-delete=40000 --delay-updates --delete --delete-after \
# Check if rsync was ok
@ -528,6 +525,9 @@ else
info "Primary sync successfully completed"
fi
# fix directory permissions for pool files
find "$LOCAL_DIR" -type d -exec chmod 755 {} \;
# Let's check new file MD5sums
fresh_files=`egrep "^>f......... .*" "$rsync_log" | awk '{print $2}'`