fix(solidtime): prevent composer install from hanging on root prompt (#17146)

composer's root/superuser safety prompt blocks on stdin during update_script,
since the container's terminal isn't attached to answer it. Set
COMPOSER_ALLOW_SUPERUSER=1 to suppress the prompt, matching composer's
documented approach for running as root non-interactively.
This commit is contained in:
Andrew Jones
2026-09-10 04:33:16 -04:00
committed by GitHub
parent cb1090623d
commit 639eb8e839
+1 -1
View File
@@ -45,7 +45,7 @@ function update_script() {
msg_info "Updating Application"
cd /opt/solidtime
$STD composer install --no-dev --optimize-autoloader
COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev --optimize-autoloader
$STD npm install
$STD npm run build
$STD php artisan migrate --force