Make composer install run as www-data

This commit is contained in:
Deon George 2018-05-08 15:56:49 +10:00
parent 9fb30c0958
commit 4c56b5723d

2
start
View File

@ -15,7 +15,7 @@ if [ "${role}" = "app" ]; then
if [ "${env}" != "local" -a -r "artisan" ]; then
# See if we need to refresh our dependancies
if [[ -r composer.lock && ( -e .composer.refresh || ! -d vendor ) ]]; then
composer install && ( test -e .composer.refresh && rm -f .composer.refresh )
su www-data -s /bin/sh -c "composer install" && ( test -e .composer.refresh && rm -f .composer.refresh )
fi
echo "Caching configuration..."