From 91abda4eed36b0d6ff1bdfbaa32eda50c4da1c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 24 Mar 2024 12:50:58 +0100 Subject: [PATCH] Allow running composer as root *sigh* --- scripts/install | 4 ++-- scripts/upgrade | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 154bba4..7479967 100644 --- a/scripts/install +++ b/scripts/install @@ -36,8 +36,8 @@ ynh_script_progression --message="Building Movim..." # Install composer ynh_install_composer -ynh_exec_warn_less ynh_exec_as "$app" ynh_composer_exec --commands="install" -ynh_exec_warn_less ynh_exec_as "$app" ynh_composer_exec --commands="movim:migrate" +COMPOSER_ALLOW_SUPERUSER=1 "$app" ynh_composer_exec --commands="install" +COMPOSER_ALLOW_SUPERUSER=1 "$app" ynh_composer_exec --commands="movim:migrate" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 60f9707..0433992 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,9 +42,9 @@ ynh_script_progression --message="Building Movim..." ynh_exec_warn_less ynh_install_composer -ynh_exec_warn_less ynh_composer_exec --commands="config --global discard-changes true --quiet" -ynh_exec_warn_less ynh_composer_exec --commands="update --no-interaction --quiet" -ynh_exec_warn_less ynh_composer_exec --commands="movim:migrate --quiet" +ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="config --global discard-changes true --quiet" +ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="update --no-interaction --quiet" +ynh_exec_warn_less COMPOSER_ALLOW_SUPERUSER=1 ynh_composer_exec --commands="movim:migrate --quiet" #================================================= # REAPPLY SYSTEM CONFIGURATIONS