projects
/
deploy-hooks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d3f6ba
)
fixed permissions on ryf
author
Lisa Marie Maginnis
<lisam@fsf.org>
Tue, 5 Jul 2016 17:41:05 +0000
(13:41 -0400)
committer
Lisa Marie Maginnis
<lisam@fsf.org>
Tue, 5 Jul 2016 17:41:05 +0000
(13:41 -0400)
ryf.git/post-update
patch
|
blob
|
blame
|
history
diff --git
a/ryf.git/post-update
b/ryf.git/post-update
index 91bcf5ad9ba4bf6275f6f1e88f5375a67042fcaf..8b222735093bded083a661c7c59cd22681fd4e35 100755
(executable)
--- 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