From 72ff8ebf152d66784573f076bb8c011c36bd5b3e Mon Sep 17 00:00:00 2001 From: tigerbot Date: Thu, 15 Jun 2017 16:50:24 -0600 Subject: [PATCH] changed some ownership/permission stuff --- install.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index e8e5dbf..66e4430 100644 --- a/install.sh +++ b/install.sh @@ -199,13 +199,17 @@ popd # Change to admin perms # OS X -$sudo_cmd chown _www:_www /var/www /srv/www || true -$sudo_cmd chown -R _www:_www /opt/goldilocks/{lib,bin,etc} || true +$sudo_cmd chown -R _www:_www /var/www /srv/www /opt/goldilocks || true # Linux -$sudo_cmd chown www-data:www-data /var/www /srv/www || true -$sudo_cmd chown -R www-data:www-data /opt/goldilocks/{lib,bin,etc} || true +$sudo_cmd chown -R www-data:www-data /var/www /srv/www /opt/goldilocks || true -# Unistall +# make sure the files are all read/write for the owner and group, and then set +# the setuid and setgid bits so that any files/directories created inside these +# directories have the same owner and group. +$sudo_cmd chmod -R ug+rwX /opt/goldilocks +find /opt/goldilocks -type d -exec $sudo_cmd chmod ug+s {} \; + +# Uninstall dap_dl "https://git.daplie.com/Daplie/goldilocks.js/raw/master/uninstall.sh" "./goldilocks-uninstall" $sudo_cmd chmod 755 "./goldilocks-uninstall" $sudo_cmd chown root:root "./goldilocks-uninstall"