From d5c292c81998deddf97e5f89e8453ce187a1a360 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 14 Aug 2020 23:08:47 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 5c1c682..2bffcab 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -78,10 +78,19 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= +ynh_script_progression --message="Configuring ttrss..." --weight=1 + +cp ../conf/config.php "$final_path/config.php" # Change domain name in config.php +ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/config.php" +ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php" +ynh_replace_string --match_string="__DOMAINPATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/config.php" ynh_replace_string --match_string="define('SELF_URL_PATH'.*" --replace_string="define('SELF_URL_PATH', 'https://$new_domain$new_path');" --target_file="$final_path/config.php" +# Recalculate and store the config file checksum into the app settings +ynh_store_file_checksum --file="$final_path/config.php" + #================================================= # GENERIC FINALIZATION #=================================================