diff --git a/manifest.toml b/manifest.toml index 7cec57f..c5daf8e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Rocket.Chat" description.en = "Team collaboration communication platform" description.fr = "Plateforme de communication collaborative en équipe" -version = "6.7.2~ynh1" +version = "6.8.0~ynh1" maintainers = ["eric_G"] @@ -50,8 +50,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://releases.rocket.chat/6.7.2/download" - sha256 = "d62431f144d23195ebf839e9e875e4120ffdbda8253d181baf51111fcb0f098b" + url = "https://releases.rocket.chat/6.8.0/download" + sha256 = "9c306d586191a630c76ce981254a1a68d1d14bb4ce3656a321d93c71d94f2944" in_subdir = true extract = true rename = "rocket.chat.tgz" diff --git a/scripts/backup b/scripts/backup index 3f4ba63..062b1be 100644 --- a/scripts/backup +++ b/scripts/backup @@ -22,23 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= - ynh_backup --src_path="/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a602c79..f2aa3aa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,15 +48,10 @@ fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=22 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=22 - # Remove the app directory securely - ynh_secure_remove --file="$install_dir" - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir"