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