diff --git a/scripts/_common.sh b/scripts/_common.sh index 9057eda..c3ac172 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,7 +15,7 @@ pkg_dependencies="ufraw-batch ffmpeg" #redis-server redis-tools # EXPERIMENTAL HELPERS #================================================= -readonly YNH_DEFAULT_COMPOSER_VERSION=2.0.8 #1.10.17 +readonly YNH_DEFAULT_COMPOSER_VERSION=1.10.17 #1.10.17 # 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 375fd92..b42921a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,15 +127,14 @@ ynh_add_fpm_config --package="$extra_php_dependencies" ynh_script_progression --message="Installing Composer..." --weight=10 # Install Composer -#ynh_install_composer - -#ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" +ynh_install_composer +ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" pushd "$final_path" - php$phpversion artisan key:generate -n + #php$phpversion artisan key:generate -n php$phpversion artisan migrate -n --force - php$phpversion artisan config:clear -n - php$phpversion artisan config:cache -n + #php$phpversion artisan config:clear -n + #php$phpversion artisan config:cache -n popd ynh_backup_if_checksum_is_different --file="$final_path/.env"