diff --git a/conf/app.src b/conf/app.src index 49b129e..6dc9964 100755 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/mattermost/focalboard/releases/download/v7.1.0/focalboard-server-linux-amd64.tar.gz -SOURCE_SUM=25101fa5e2fbc4a6a9cde1de00dba2dad086bc38c25410b5cddda593db271284 +SOURCE_URL=https://github.com/mattermost/focalboard/releases/download/v7.2.1/focalboard-server-linux-amd64.tar.gz +SOURCE_SUM=fdbc08e37f398364cf2d84b6bc4f44165c6230f00558f9ae18743ba3297cbb39 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 4e7d478..d1b6933 100755 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self-hosted alternative to Trello, Notion, and Asana", "fr": "Alternative auto-hébergée à Trello, Notion et Asana" }, - "version": "7.1.0~ynh3", + "version": "7.2.1~ynh1", "url": "https://www.focalboard.com/", "upstream": { "license": "MIT", diff --git a/scripts/upgrade b/scripts/upgrade index 8eeb558..eda89a2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,6 +33,20 @@ enable_public_boards=$(ynh_app_setting_get --app=$app --key=enable_public_boards upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP +#================================================= +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 + +# Backup the current version of the app +ynh_backup_before_upgrade +ynh_clean_setup () { + # Restore it if the upgrade fails + ynh_restore_upgradebackup +} +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -77,20 +91,6 @@ if [ -z "/opt/yunohost/$app/files" ]; then chown -R $app:www-data $files_path fi -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - # Restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # STANDARD UPGRADE STEPS #=================================================