From 627b48852a7d1c3e138af3c91342e0ec13c978a8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 30 Jun 2021 16:11:38 +1000 Subject: [PATCH] Changes to Permission settings, to enable NGINX to read public dirs --- init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init b/init index b199af0..05742c4 100755 --- a/init +++ b/init @@ -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