Chown vendor dir to www-data

This commit is contained in:
Deon George 2020-01-15 15:29:34 +11:00
parent ee45868bf9
commit 680ab60f7a

1
init
View File

@ -24,6 +24,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
find ${php} -type d -exec chmod 750 {} \; find ${php} -type d -exec chmod 750 {} \;
chown -R lamp:www-data ${php} chown -R lamp:www-data ${php}
chown -R www-data:www-data ${php}/storage ${php}/bootstrap chown -R www-data:www-data ${php}/storage ${php}/bootstrap
[ -e ${php}/vendor ] && chown -R www-data:www-data ${php}/vendor
if [ "${env}" != "local" -a -r "artisan" ]; then if [ "${env}" != "local" -a -r "artisan" ]; then
# See if we need to refresh our dependancies # See if we need to refresh our dependancies