1
0
Fork 0
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:
yalh76 2022-08-30 22:57:33 +02:00
parent 957dc98ee8
commit 9f77d173b1

View file

@ -34,6 +34,8 @@ ynh_script_progression --message="Checking version..."
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
#=================================================
@ -153,7 +155,7 @@ pushd "$final_path"
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 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
if [ -f $final_path/storage/oauth-private.key ]; then