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:
parent
aef5cf98f2
commit
ddaf67ebd5
1 changed files with 9 additions and 0 deletions
|
@ -93,6 +93,15 @@ then
|
||||||
# Remove the tmp directory securely
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue