From a1c131bf7c12dbcca3c7b44a8d7bb95be04325c0 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Thu, 7 May 2020 17:14:37 +0200 Subject: [PATCH] fix: remove composer upgrade not needed anymore, upgrade config file --- scripts/upgrade | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 94f716d..3a7195c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -146,6 +146,7 @@ then conf_file="$final_path/config/ampache.cfg.php" ynh_backup_if_checksum_is_different --file="$conf_file" + cp ../conf/ampache.cfg.php "$conf_file" ynh_replace_string --match_string="__DBUSER__" --replace_string="$db_name" --target_file="$conf_file" db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$conf_file" @@ -157,16 +158,6 @@ then # Calculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$conf_file" - #================================================= - # UPDATE AMPACHE WITH COMPOSER - #================================================= - ynh_script_progression --message="Upgrading ampache with composer..." --weight=30 - - # Install composer - ynh_install_composer - - ynh_composer_exec --commands="config discard-changes true" - ynh_composer_exec --commands="update --prefer-source --no-interaction --no-dev" fi #=================================================