mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
4.1.2
This commit is contained in:
parent
ab5b9c5532
commit
c492ac5928
3 changed files with 24 additions and 28 deletions
|
@ -1,7 +1,7 @@
|
|||
SOURCE_URL=https://releases.rocket.chat/3.18.1/download
|
||||
SOURCE_SUM=c895fa9bef7b83b2005ae749ac0897e78f861fc4777b987a75dc62b077d51614
|
||||
SOURCE_URL=https://releases.rocket.chat/4.1.2/download
|
||||
SOURCE_SUM=a85954b127ed6ad377a8f178b6762262d9ee6ddb8cdd1905a76929e3621cf85b
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=rocket.chat-3.18.1.tgz
|
||||
SOURCE_EXTRACT=true
|
||||
SOURCE_FILENAME=rocket.chat-4.1.2.tgz
|
||||
SOURCE_EXTRACT=true
|
||||
|
|
|
@ -6,14 +6,13 @@
|
|||
"en": "Team collaboration communication platform",
|
||||
"fr": "Plateforme de communication collaborative en équipe"
|
||||
},
|
||||
"version": "3.18.1~ynh1",
|
||||
"version": "4.1.2~ynh1",
|
||||
"url": "https://rocket.chat",
|
||||
"upstream": {
|
||||
"license": "GPL-3.0",
|
||||
"website": "https://rocket.chat/",
|
||||
"demo": "https://cloud.rocket.chat/trial",
|
||||
"admindoc": "https://docs.rocket.chat/",
|
||||
"userdoc": "https://yunohost.org/apps",
|
||||
"code": "https://github.com/RocketChat/Rocket.Chat"
|
||||
},
|
||||
"license": "GPL-3.0",
|
||||
|
@ -26,7 +25,7 @@
|
|||
"nginx"
|
||||
],
|
||||
"requirements": {
|
||||
"yunohost": ">> 4.2.4"
|
||||
"yunohost": ">> 4.3.2"
|
||||
},
|
||||
"arguments": {
|
||||
"install" : [
|
||||
|
|
|
@ -28,27 +28,6 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z "$final_path" ]; then
|
||||
final_path=/var/www/$app
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
### If nobody installed your app before 4.1,
|
||||
### then you may safely remove these lines
|
||||
|
||||
# Cleaning legacy permissions
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
||||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -63,6 +42,24 @@ ynh_clean_setup () {
|
|||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z "$final_path" ]; then
|
||||
final_path=/var/www/$app
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
|
||||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue