mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Update upgrade
This commit is contained in:
parent
957dc98ee8
commit
9f77d173b1
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@ ynh_script_progression --message="Checking version..."
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
upgrade_type=$(ynh_check_app_version_changed)
|
||||||
|
|
||||||
|
previous_version=$(read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" 'version' 2> /dev/null)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -153,7 +155,7 @@ pushd "$final_path"
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install
|
||||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn run production
|
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn run production
|
||||||
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan setup:production --force
|
ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan monica:update --force
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if [ -f $final_path/storage/oauth-private.key ]; then
|
if [ -f $final_path/storage/oauth-private.key ]; then
|
||||||
|
|
Loading…
Reference in a new issue