From 4ec1ee6ef68f32dd7a81fa0701cb90e1ca7dbc3e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 22 Jun 2021 15:16:38 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 989d5dd..a079a8e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,7 +101,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/settings.json $final_path/credentials.json" + ynh_setup_source --dest_dir="$final_path" fi # Set permissions on app files @@ -126,6 +126,14 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies ynh_install_nodejs --nodejs_version=$nodejs_version +#================================================= +# MODIFY A CONFIG FILE +#================================================= +ynh_script_progression --message="Reconfiguring Etherpad..." --weight=6 + +ynh_add_config --template="../conf/settings.json" --destination="$final_path/settings.json" +ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json" + #================================================= # INSTALL ETHERPAD #=================================================