From 4d86334839ca8d79f88e8f209f00b8aeb02bad6a Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 24 Jun 2021 23:34:54 +1000 Subject: [PATCH] Change cache configuration, ensure items in public dont have +x --- init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init b/init index 488f650..b199af0 100755 --- a/init +++ b/init @@ -66,7 +66,8 @@ if [ "${role}" = "app" -a -e artisan ]; then find ${php} -type f -exec chmod 640 {} \; find ${php} -type d -exec chmod 750 {} \; chmod o+rx ${php} - chmod -R o+rx ${php}/public + 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 @@ -99,7 +100,7 @@ if [ "${role}" = "app" -a -e artisan ]; then echo "* Lumen detected..." else echo "* Caching configuration..." - su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)" + su www-data -s /bin/sh -c "(php artisan optimize && php artisan view:cache)" fi if [ -r .migrate ]; then