diff options
author | Milo Casagrande <milo@ubuntu.com> | 2013-03-12 14:42:38 +0100 |
---|---|---|
committer | Milo Casagrande <milo@ubuntu.com> | 2013-03-12 14:42:38 +0100 |
commit | 6ca011434dbb737d3d930c48566241558359becc (patch) | |
tree | ebb2edd39f00b2a2e2ab50b30be56f5ca40051ac | |
parent | 2e59cf3f284e19b3dde1c43299f39c34be9801b0 (diff) |
Use find to set files and directories permissions.
-rw-r--r-- | scripts/rsync-mirror | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/rsync-mirror b/scripts/rsync-mirror index ea78369..3c47baa 100644 --- a/scripts/rsync-mirror +++ b/scripts/rsync-mirror @@ -52,5 +52,8 @@ rsync -e "ssh -i $SSH_KEY -l $SSH_USER" -r -l --copy-unsafe-links -z -t --compre echo "Setting directories ownership..." chown -R $RHODECODE_USER:$RHODECODE_USER $LOCAL_REPO_PATH -chmod -R go+rx $LOCAL_REPO_PATH + +# chmod-correctly directories and files +find $LOCAL_REPO_PATH -type d -exec chmod 775 {} \; +find $LOCAL_REPO_PATH -type f -exec chmod 664 {} \; |