1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/focalboard_ynh.git synced 2024-09-03 18:36:19 +02:00
This commit is contained in:
ericgaspar 2022-09-16 08:47:16 +02:00
parent a0cd9a8c23
commit e1bde545c8
3 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/mattermost/focalboard/releases/download/v7.1.0/focalboard-server-linux-amd64.tar.gz SOURCE_URL=https://github.com/mattermost/focalboard/releases/download/v7.2.1/focalboard-server-linux-amd64.tar.gz
SOURCE_SUM=25101fa5e2fbc4a6a9cde1de00dba2dad086bc38c25410b5cddda593db271284 SOURCE_SUM=fdbc08e37f398364cf2d84b6bc4f44165c6230f00558f9ae18743ba3297cbb39
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Self-hosted alternative to Trello, Notion, and Asana", "en": "Self-hosted alternative to Trello, Notion, and Asana",
"fr": "Alternative auto-hébergée à Trello, Notion et 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/", "url": "https://www.focalboard.com/",
"upstream": { "upstream": {
"license": "MIT", "license": "MIT",

View file

@ -33,6 +33,20 @@ enable_public_boards=$(ynh_app_setting_get --app=$app --key=enable_public_boards
upgrade_type=$(ynh_check_app_version_changed) 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 # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
@ -77,20 +91,6 @@ if [ -z "/opt/yunohost/$app/files" ]; then
chown -R $app:www-data $files_path chown -R $app:www-data $files_path
fi 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 # STANDARD UPGRADE STEPS
#================================================= #=================================================