From 0594d3d69998efc855bef2f244e08d83cab6b0c2 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Wed, 19 Apr 2023 11:40:14 +0200 Subject: [PATCH] add env-file to change_url script --- scripts/change_url | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index b286df6..7d5a665 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -100,6 +100,16 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# CHANGE APP CONFIGURATION +#================================================= +ynh_script_progression --message="Changing app configuration file..." --weight=1 + +ynh_add_config --template="../conf/.env.local.example" --destination="$final_path/.env.local" + +chmod 400 "$final_path/.env.local" +chown $app:$app "$final_path/.env.local" + #================================================= # GENERIC FINALISATION #=================================================