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