1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nullboard_ynh.git synced 2024-09-03 19:46:08 +02:00

Update version

This commit is contained in:
ericgaspar 2021-10-04 17:42:43 +02:00
parent 29faaf49aa
commit 2832d2f982
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 17 additions and 18 deletions

View file

@ -1,6 +1,5 @@
SOURCE_URL=https://github.com/apankrat/nullboard/archive/15da6226d3bc9641701a84c89a6ee01c08a416dc.tar.gz SOURCE_URL=https://github.com/apankrat/nullboard/archive/f803756b054d1cf4aa2094800e1ac4a0561df9df.tar.gz
SOURCE_SUM=5143bdedf4c9e7e86e86666e37643a0b775656db80dade826687445d65feb11d SOURCE_SUM=b24f38872c8d4327ea570c41e0454dd9bce0b6f337c68aa3440fc7ac42901912
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -6,7 +6,7 @@
"en": "Minimalist kanban board, focused on compactness and readability", "en": "Minimalist kanban board, focused on compactness and readability",
"fr": "Kanban minimaliste, axé sur la compacité et la lisibilité" "fr": "Kanban minimaliste, axé sur la compacité et la lisibilité"
}, },
"version": "1.0~ynh3", "version": "1.0~ynh4",
"url": "https://nullboard.io/preview", "url": "https://nullboard.io/preview",
"upstream": { "upstream": {
"license": "BSD-2-Clause", "license": "BSD-2-Clause",

View file

@ -25,6 +25,20 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
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 $app before upgrading (may take a while)..." --weight=3
# 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
#================================================= #=================================================
@ -51,20 +65,6 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing) # Create a dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path" ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up $app before upgrading (may take a while)..." --weight=3
# 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
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================