From c1bb493a92f08354c227477063dd0046831deaa5 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Tue, 5 Jul 2016 13:41:05 -0400 Subject: [PATCH] fixed permissions on ryf --- ryf.git/post-update | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1