From 6dff889d0c9a53638d9bc789698edfe1ca45ae26 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 23 Apr 2023 15:58:28 +0200 Subject: [PATCH] Fix change_url after v2 --- scripts/change_url | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 6a30d07..291aea2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -37,9 +37,7 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Modifying a config file..." -ynh_add_config --template="../conf/config.production.json" --destination="$install_dir/ghost/core/config.production.json" -chmod 400 "$install_dir/ghost/core/config.production.json" -chown $app:$app "$install_dir/ghost/core/config.production.json" +echo "$(jq -r --arg YNH_APP_NEW_DOMAIN $YNH_APP_NEW_DOMAIN --arg YNH_APP_NEW_PATH $YNH_APP_NEW_PATH ".url = \"http://$YNH_APP_NEW_DOMAIN$YNH_APP_NEW_PATH\"" $install_dir/ghost/config.production.json)" > $install_dir/ghost/config.production.json #================================================= # GENERIC FINALISATION