1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Fix change_url after v2

This commit is contained in:
tituspijean 2023-04-23 15:58:28 +02:00
parent 7ca66b89e8
commit 6dff889d0c
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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