make fix_permissions do it right
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
[ "root" != "$USER" ] && exec sudo $0 "$@"
|
[ "root" != "$USER" ] && exec sudo $0 "$@"
|
||||||
chown -R princesspi:www-data /var/www/*
|
|
||||||
find /var/www/* -type d -exec chmod g=rwx "{}" \;
|
webdir=/var/www
|
||||||
find /var/www/* -type f -exec chmod g=rw "{}" \;
|
www_group=www-data
|
||||||
|
userfriend=princesspi
|
||||||
|
|
||||||
|
find "$webdir" -type d -exec chmod 775 {} \;
|
||||||
|
find "$webdir" -type f -exec chmod 664 {} \;
|
||||||
|
find "$webdir" -type f -iname "*.sh" -exec chmod 775 {} \;
|
||||||
|
chown -R $userfriend:$www_group "$web_dir"
|
||||||
|
|||||||
Reference in New Issue
Block a user