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