From 887e68e8fb5d722b81fbe750a550e755c4583aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:33:10 +0100 Subject: [PATCH] Update change_url --- scripts/change_url | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 84fc887..4a846db 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,10 +21,7 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_add_config --template="application.ini" --destination="$install_dir/app/data/_data_/_default_/configs/application.ini" - -chmod 400 "$install_dir/app/data/_data_/_default_/configs/application.ini" -chown $app:$app "$install_dir/app/data/_data_/_default_/configs/application.ini" +ynh_replace_string --match_string='default_domain = "$domain"' --replace_string='default_domain = "$new_domain"' --target_file="$install_dir/app/data/_data_/_default_/configs/application.ini" #================================================= # SETUP SSO