Change cache configuration, ensure items in public dont have +x

This commit is contained in:
Deon George 2021-06-24 23:34:54 +10:00
parent 9600a556ad
commit 4d86334839

5
init
View File

@ -66,7 +66,8 @@ if [ "${role}" = "app" -a -e artisan ]; then
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 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 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
@ -99,7 +100,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
echo "* Lumen detected..." echo "* Lumen detected..."
else else
echo "* Caching configuration..." 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 fi
if [ -r .migrate ]; then if [ -r .migrate ]; then