mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-12 09:56:37 +02:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user