changed some ownership/permission stuff

This commit is contained in:
tigerbot 2017-06-15 16:50:24 -06:00
parent 7408db6601
commit 72ff8ebf15
1 changed files with 9 additions and 5 deletions

View File

@ -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"