Fix public dirs for nginx

This commit is contained in:
Deon George 2020-01-16 08:16:38 +11:00
parent 528051fe04
commit 41b4b633e2

2
init
View File

@ -24,6 +24,8 @@ if [ "${role}" = "app" -a -e artisan ]; then
# Make sure our permissions are appropraite # Make sure our permissions are appropraite
find ${php} -type f -exec chmod 640 {} \; find ${php} -type f -exec chmod 640 {} \;
find ${php} -type d -exec chmod 750 {} \; find ${php} -type d -exec chmod 750 {} \;
chmod o+rx ${php}
chmod -R o+rx ${php}/public
chown -R lamp:www-data ${php} chown -R lamp:www-data ${php}
chown -R www-data:www-data ${php}/storage ${php}/bootstrap ${php}/composer.* chown -R www-data:www-data ${php}/storage ${php}/bootstrap ${php}/composer.*
[ -e ${php}/vendor ] && chown -R www-data:www-data ${php}/vendor [ -e ${php}/vendor ] && chown -R www-data:www-data ${php}/vendor