From f9df99cb5743ea96be0da17e98aed7b9499f398f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 12 Jan 2024 21:33:48 +0100 Subject: [PATCH] Move https config and force upgrade --- scripts/upgrade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 11db23a..df7632b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,11 +111,9 @@ else pushd $install_dir/ghost # Make sure the app does not expect to manage its own process ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local - # Make sure the app config runs on https - ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --url https://$domain$path # Upgrade Ghost itself ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \ - --no-prompt --no-auto-rollback --no-restart + --no-prompt --no-auto-rollback --no-restart --force popd fi @@ -124,6 +122,7 @@ fi pushd $install_dir/ghost ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \ --port $port --process local \ + --url https://$domain$path \ --mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25 popd