diff --git a/scripts/upgrade b/scripts/upgrade index 07fa1b2..d26b92c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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