Changes to Permission settings, to enable NGINX to read public dirs

This commit is contained in:
Deon George 2021-06-30 16:11:38 +10:00
parent 4d86334839
commit 627b48852a

3
init
View File

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