From ddaf67ebd55b35f8a0abd87e441e5f31e31ef206 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 24 Apr 2023 22:05:33 +0200 Subject: [PATCH] Handle future upgrades --- scripts/upgrade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 72886ff..187d33c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,6 +93,15 @@ then # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" +else + + # Upgrade Ghost CLI and Ghost itself + pushd $install_dir + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest + ynh_exec_as $app $ynh_node_load_PATH ./node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \ + --no-prompt --no-auto-rollback --no-restart + popd + fi