diff --git a/scripts/_common.sh b/scripts/_common.sh index 45bb9ec..da3eb2a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -10,7 +10,7 @@ YNH_PHP_VERSION="7.3" extra_php_dependencies="php-pear php${YNH_PHP_VERSION}-ldap php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-dom php${YNH_PHP_VERSION}-curl" # Composer version -composer_version=1.10.17 +composer_version=2.0.11 # Plugins version contextmenu_version=2.3 @@ -21,7 +21,7 @@ carddav_version=3.0.3 # EXPERIMENTAL HELPERS #================================================= -readonly YNH_DEFAULT_COMPOSER_VERSION=1.10.17 +readonly YNH_DEFAULT_COMPOSER_VERSION=2.0.11 # Declare the actual composer version to use. # A packager willing to use another version of composer can override the variable into its _common.sh. YNH_COMPOSER_VERSION=${YNH_COMPOSER_VERSION:-$YNH_DEFAULT_COMPOSER_VERSION} diff --git a/scripts/upgrade b/scripts/upgrade index 709c880..c625ec8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -261,7 +261,7 @@ then ( cd "$final_path" ynh_exec_warn ./bin/update.sh --version=$oldversion -y - php$phpversion composer.phar update --no-dev) + sudo -u $app php$phpversion composer.phar update --no-dev) fi #=================================================