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