From d233c46d65718d89f2f0a1ce5b6e21b31dc2a2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:39:09 +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 46996dd..a264702 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,10 +21,7 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -ynh_add_config --template=".env.example" --destination="$install_dir/.env" - -chmod 600 "$install_dir/.env" -chown $app:$app "$install_dir/.env" +ynh_replace_string --match_string="APP_URL=https://*" --replace_string="APP_URL=https://$new_domain" --target_file=$install_dir/.env #================================================= # END OF SCRIPT