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

Handle future upgrades

This commit is contained in:
tituspijean 2023-04-24 22:05:33 +02:00
parent aef5cf98f2
commit ddaf67ebd5
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

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