Make composer install run as www-data
This commit is contained in:
parent
9fb30c0958
commit
4c56b5723d
2
start
2
start
@ -15,7 +15,7 @@ if [ "${role}" = "app" ]; then
|
|||||||
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
|
||||||
if [[ -r composer.lock && ( -e .composer.refresh || ! -d vendor ) ]]; then
|
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
|
fi
|
||||||
|
|
||||||
echo "Caching configuration..."
|
echo "Caching configuration..."
|
||||||
|
Loading…
Reference in New Issue
Block a user