From 81d98afe4c5a8530492745a9e462eacbad2fa812 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 25 Jun 2021 23:01:36 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index afcc96e..19d5317 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,12 +82,12 @@ ynh_system_user_create --username=$app if [ "$upgrade_type" == "UPGRADE_APP" ] then # Verify the checksum and backup the file if it's different - ynh_backup_if_checksum_is_different --file="$final_path/searx/settings.yml" + #ynh_backup_if_checksum_is_different --file="$final_path/searx/settings.yml" ynh_script_progression --message="Upgrading source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/searx/settings.yml" fi #================================================= @@ -125,18 +125,18 @@ pip3 install --requirement $final_path/requirements-ynh.txt --upgrade #================================================= # CONFIGURE SEARX #================================================= -ynh_script_progression --message="Reconfiguring Searx..." --weight=2 +# ynh_script_progression --message="Reconfiguring Searx..." --weight=2 -# Change instance name -ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="instance_name : \"YunoSearx\"" --target_file="$final_path/searx/settings.yml" +# # Change instance name +# ynh_replace_string --match_string="instance_name : \"searx\"" --replace_string="instance_name : \"YunoSearx\"" --target_file="$final_path/searx/settings.yml" -# Generate a secret key -ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml" +# # Generate a secret key +# ynh_replace_string --match_string="secret_key : \"ultrasecretkey\"" --replace_string="secret_key : \"$(ynh_string_random)\"" --target_file="$final_path/searx/settings.yml" -# Modify the base_url parameter -#ynh_replace_string --match_string="base_url : False" --replace_string="base_url : https://${domain}${path_url%/}/" --target_file="$final_path/searx/settings.yml" +# # Modify the base_url parameter +# #ynh_replace_string --match_string="base_url : False" --replace_string="base_url : https://${domain}${path_url%/}/" --target_file="$final_path/searx/settings.yml" -ynh_store_file_checksum --file="$final_path/searx/settings.yml" +# ynh_store_file_checksum --file="$final_path/searx/settings.yml" #================================================= # GENERIC FINALISATION