helpers: run composer as the app user

This commit is contained in:
OniriCorpe 2024-03-25 02:26:58 +01:00
parent b79395dfe0
commit 0320f1d1e2

View file

@ -533,7 +533,7 @@ ynh_composer_exec() {
fi fi
COMPOSER_HOME="$workdir/.composer" COMPOSER_MEMORY_LIMIT=-1 \ COMPOSER_HOME="$workdir/.composer" COMPOSER_MEMORY_LIMIT=-1 \
php${phpversion} "$workdir/composer.phar" $commands \ sudo -u "$app" php${phpversion} "$workdir/composer.phar" $commands \
-d "$workdir" --no-interaction --no-ansi 2>&1 -d "$workdir" --no-interaction --no-ansi 2>&1
} }