From: Lisa Marie Maginnis Date: Tue, 5 Jul 2016 17:41:05 +0000 (-0400) Subject: fixed permissions on ryf X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c1bb493a92f08354c227477063dd0046831deaa5;p=deploy-hooks.git fixed permissions on ryf --- diff --git a/ryf.git/post-update b/ryf.git/post-update index 91bcf5a..8b22273 100755 --- a/ryf.git/post-update +++ b/ryf.git/post-update @@ -42,6 +42,8 @@ fi if [ -n $TARGET_HOST ]; then echo Deploying to: $TARGET_DIR rsync -avrSPX --delete-after $CHECKOUT_DIR/* root@$TARGET_HOST:$TARGET_DIR/ + echo Fixing permissions + ssh root@ryf.fsf.org "find /var/www -print0 -type f | xargs -0 chmod 640;find /var/www -print0 -type d | xargs -0 chmod 750;chown -R root.www-data /var/www" fi echo "------- post-update finished ------" exec git update-server-info