1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

Update change_url

This commit is contained in:
ericgaspar 2021-12-28 10:45:08 +01:00
parent 0cd6aadc91
commit 782b32484e

View file

@ -99,20 +99,12 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Configuring $app..." --weight=1 ynh_script_progression --message="Configuring $app..." --weight=1
domain="$new_domain" domain_path=https://$new_domain$new_path
path_url="$new_path"
ynh_backup_if_checksum_is_different --file="$final_path/config.php" ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
cp ../conf/config.php "$final_path/config.php" chmod 400 "$final_path/config.php"
chown $app "$final_path/config.php"
# Change domain name in config.php
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DOMAIN_PATH__" --replace_string="https://$domain$path_url" --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 # GENERIC FINALIZATION