diff --git a/scripts/upgrade b/scripts/upgrade index c749ec2..88d88c4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -144,6 +144,9 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie #================================================= ynh_script_progression --message="Installing Composer..." --weight=1 + +ynh_secure_remove --file="$final_path/composer.lock" + # Upgrade composer itself ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev" @@ -152,16 +155,11 @@ ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_ar #================================================= ynh_script_progression --message="Building..." -ynh_backup_if_checksum_is_different --file="$final_path/.env" - # Setup application config ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" -# Recalculate and store the checksum of the file for the next upgrade. -ynh_store_file_checksum --file="$final_path/.env" - # Setup custom user.css file -cp ../conf/user.css.example $final_path/public/dist/user.css +#cp ../conf/user.css.example $final_path/public/dist/user.css #================================================= # INSTALL AND INITIALIZE COMPOSER