From 59013d066d2c1ffa36714e776b2912acd236d84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 17 Mar 2021 20:59:57 +0100 Subject: [PATCH 01/17] Fix linter (#224) * Fix linter * Update manifest.json * Set password variable to smtp_user_pwd * Fix doc link --- README.md | 2 +- README_fr.md | 2 +- conf/config.json | 12 ++++++------ conf/nginx.conf | 1 + manifest.json | 22 +--------------------- scripts/change_url | 2 +- scripts/install | 20 ++++---------------- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 34 ++++++++-------------------------- 10 files changed, 25 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index 5067312..624c91a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Mattermost is a self-hosted, open source instant messaging and service software. ## Documentation * Official documentation: https://docs.mattermost.com/ - * YunoHost documentation: https://yunohost.org/#/app_mattermost + * YunoHost documentation: https://yunohost.org/en/app_mattermost ## YunoHost specific features diff --git a/README_fr.md b/README_fr.md index 408ce62..5c8d042 100644 --- a/README_fr.md +++ b/README_fr.md @@ -24,7 +24,7 @@ Mattermost est un logiciel et un service de messagerie instantanée libre auto-h ## Documentation * Documentation officielle : https://docs.mattermost.com/ - * Documentation YunoHost : https://yunohost.org/#/app_mattermost_fr + * Documentation YunoHost : https://yunohost.org/fr/app_mattermost ## Caractéristiques spécifiques YunoHost diff --git a/conf/config.json b/conf/config.json index 1a51505..80df047 100644 --- a/conf/config.json +++ b/conf/config.json @@ -3,7 +3,7 @@ "SiteURL": "__URL__", "WebsocketURL": "", "LicenseFileLocation": "", - "ListenAddress": "__PORT__", + "ListenAddress": "127.0.0.1:__PORT__", "ConnectionSecurity": "", "TLSCertFile": "", "TLSKeyFile": "", @@ -144,7 +144,7 @@ }, "SqlSettings": { "DriverName": "mysql", - "DataSource": "__DB_USER__:__DB_PASS__@tcp(localhost:3306)/__DB_NAME__?charset=utf8mb4,utf8", + "DataSource": "__DB_USER__:__DB_PWD__@tcp(localhost:3306)/__DB_NAME__?charset=utf8mb4,utf8", "DataSourceReplicas": [], "DataSourceSearchReplicas": [], "MaxIdleConns": 20, @@ -185,7 +185,7 @@ "EnableFile": true, "FileLevel": "INFO", "FileJson": true, - "FileLocation": "__LOG__", + "FileLocation": "__LOGS_PATH__", "AdvancedLoggingConfig": "" }, "PasswordSettings": { @@ -201,7 +201,7 @@ "EnableMobileDownload": true, "MaxFileSize": 52428800, "DriverName": "local", - "Directory": "__DATA__", + "Directory": "__DATA_PATH__", "EnablePublicLink": false, "PublicLinkSalt": "", "InitialFont": "nunito-bold.ttf", @@ -224,12 +224,12 @@ "UseChannelInEmailNotifications": false, "RequireEmailVerification": false, "FeedbackName": "Mattermost notification", - "FeedbackEmail": "__FEEDBACK__", + "FeedbackEmail": "no-reply@__DOMAIN__", "ReplyToAddress": "", "FeedbackOrganization": "", "EnableSMTPAuth": false, "SMTPUsername": "mattermost", - "SMTPPassword": "__USER_PW__", + "SMTPPassword": "__SMTP_USER_PWD__", "SMTPServer": "localhost", "SMTPPort": "25", "SMTPServerTimeout": 10, diff --git a/conf/nginx.conf b/conf/nginx.conf index edbf5b1..9eff7cb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -34,6 +34,7 @@ location __PATH__/ { #proxy_cache_use_stale timeout; #proxy_cache_lock on; proxy_pass http://127.0.0.1:__PORT__; + # Yunohost addition: redirect HTTP to HTTPS if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; diff --git a/manifest.json b/manifest.json index 62c3750..63f740f 100644 --- a/manifest.json +++ b/manifest.json @@ -19,36 +19,24 @@ "mysql" ], "requirements": { - "yunohost": ">= 3.8.1" + "yunohost": ">= 4.1.7" }, "arguments": { "install" : [ { "name": "domain", "type": "domain", - "ask": { - "en": "Choose a domain for Mattermost", - "fr": "Choisissez un domaine pour Mattermost" - }, "example": "domain.org" }, { "name": "path", "type": "path", - "ask": { - "en": "Choose a path for Mattermost", - "fr": "Choisissez un chemin pour Mattermost" - }, "example": "/mattermost", "default": "/chat" }, { "name": "is_public", "type": "boolean", - "ask": { - "en": "Is it a public application?", - "fr": "Est-ce une application publique ?" - }, "help": { "en": "If enabled, Mattermost will be accessible by the user without a YunoHost account. This can be changed later via the webadmin.", "fr": "Si cette case est cochée, Mattermost sera accessible par l'utilisateur sans compte YunoHost. Vous pourrez changer ceci plus tard via l’interface d’administration." @@ -58,19 +46,11 @@ { "name": "admin", "type": "user", - "ask": { - "en": "Choose an admin user", - "fr": "Choisissez l'administrateur" - }, "example": "johndoe" }, { "name": "password", "type": "password", - "ask": { - "en": "Set the administrator password", - "fr": "Définissez le mot de passe administrateur" - }, "example": "Choose a password" }, { diff --git a/scripts/change_url b/scripts/change_url index 12fa15a..81f256a 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -122,7 +122,7 @@ ynh_store_file_checksum --file="$final_path/config/config.json" ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Mattermost" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index bf2f82c..8144413 100644 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=6 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=password --value=$password ynh_app_setting_set --app=$app --key=language --value=$language @@ -138,21 +137,10 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Modifying a config file..." --weight=3 -cp ../conf/config.json $final_path/config/config.json +smtp_user_pwd=$(ynh_string_random --length=24) +url=https://$domain$path_url -# Main config File -ynh_replace_string --match_string="__URL__" --replace_string="https://$domain$path_url" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__PORT__" --replace_string="127.0.0.1:$port" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__DATA__" --replace_string="$data_path" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__FEEDBACK__" --replace_string="no-reply@${domain}" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__USER_PW__" --replace_string="$(ynh_string_random --length=24)" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__LOG__" --replace_string="$logs_path" --target_file="$final_path/config/config.json" -ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/config/config.json" - -ynh_store_file_checksum --file="$final_path/config/config.json" +ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json" #================================================= # SECURE FILES AND DIRECTORIES @@ -203,7 +191,7 @@ yunohost service add $app --description="Collaboration platform built for develo ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started Mattermost" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" #================================================= # SETUP SSOWAT diff --git a/scripts/remove b/scripts/remove index 46b9cc8..26aa613 100755 --- a/scripts/remove +++ b/scripts/remove @@ -27,7 +27,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # REMOVE SERVICE FROM ADMIN PANEL #================================================= -# Remove the service from the list of services known by Yunohost (added from `yunohost service add`) +# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then ynh_script_progression --message="Removing $app service..." --weight=1 diff --git a/scripts/restore b/scripts/restore index 546890c..b0dcec2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -115,7 +115,7 @@ yunohost service add $app --description="Collaboration platform built for develo ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started Mattermost" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index d1df4cc..ac00303 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,7 +28,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) port=$(ynh_app_setting_get --app=$app --key=port) final_path=$(ynh_app_setting_get --app=$app --key=final_path) language=$(ynh_app_setting_get --app=$app --key=language) @@ -47,14 +46,6 @@ upgrade_type=$(ynh_check_app_version_changed) # ENSURE DOWNWARD COMPATIBILITY #================================================= -# Convert is_public from "Yes"/"No" to 1 / 0 -if [[ $is_public == "Yes" ]]; then - is_public=1 -elif [[ $is_public == "No" ]]; then - is_public=0 -fi -ynh_app_setting_set --app=$app --key=is_public --value=$is_public - # Save the port used if not present if [ -z "$port" ]; then port=8065 @@ -78,6 +69,13 @@ if [ -z "$db_name" ]; then ynh_app_setting_set --app=$app --key=db_name --value=$db_name 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 + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= @@ -155,22 +153,6 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 # Create a dedicated systemd config ynh_add_systemd_config -#================================================= -# SPECIFIC UPGRADE STEPS -#================================================= - -# # Fix log FileLocation path (changed in Mattermost 3.8, makes Mattermost >= 4.2 crash) -# # https://docs.mattermost.com/administration/changelog.html#release-v3-8-3 -# ynh_replace_string --match_string "\"FileLocation\": \"/var/log/mattermost.log\"" --replace_string "\"FileLocation\": \"/var/log\"" --target_file "$config_file" - -# # Move log files to a directory (rather than directly in /var/log) -# # See https://github.com/YunoHost-Apps/mattermost_ynh/issues/61 -# mkdir -p "$logs_path" -# ynh_replace_string --match_string "\"FileLocation\": \"/var/log\"" --replace_string "\"FileLocation\": \"$logs_path\"" --target_file "$config_file" -# if [ -f "/var/log/${app}.log" ]; then -# mv "/var/log/${app}.log" "$logs_path/" -# fi - #================================================= # CREATE DIRECTORY FOR DATA #================================================= @@ -212,7 +194,7 @@ yunohost service add $app --description="Collaboration platform built for develo ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Started Mattermost" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost" #================================================= # RELOAD NGINX From 6ae37ea2f1be017a566fc71798b8ee6229a68b99 Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Wed, 17 Mar 2021 18:32:19 -0400 Subject: [PATCH 02/17] Update enterprise.src --- conf/enterprise.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/enterprise.src b/conf/enterprise.src index 8b2b950..91e3641 100644 --- a/conf/enterprise.src +++ b/conf/enterprise.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://releases.mattermost.com/5.32.1/mattermost-5.32.1-linux-amd64.tar.gz -SOURCE_SUM=9117ab9777d8453ae8b63f3a008152a2bdc6a638400640a67a0a359acf479a44 +SOURCE_URL=https://releases.mattermost.com/5.33.0/mattermost-5.33.0-linux-amd64.tar.gz +SOURCE_SUM=bee5b5b66306a4dc13531584e1b6d565f238eda87d9d1574189c2baa83495375 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-5.32.1-linux-amd64.tar.gz +SOURCE_FILENAME=mattermost-5.33.0-linux-amd64.tar.gz From d51e146f01115ee566043c31c41dac9bb249022a Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Wed, 17 Mar 2021 18:33:43 -0400 Subject: [PATCH 03/17] Update x86-64.src --- conf/x86-64.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/x86-64.src b/conf/x86-64.src index 9fc7b97..1cab570 100644 --- a/conf/x86-64.src +++ b/conf/x86-64.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://releases.mattermost.com/5.32.1/mattermost-team-5.32.1-linux-amd64.tar.gz -SOURCE_SUM=86fd99e49b6ed687004d46813e51fd91e761a87dff58fa2878e752728fac555a +SOURCE_URL=https://releases.mattermost.com/5.33.0/mattermost-team-5.33.0-linux-amd64.tar.gz +SOURCE_SUM=ea9d01018af02016dd4fab0ba07c634fbaa16aaf9435feb99dee225b4e1992ac SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-team-5.32.1-linux-amd64.tar.gz +SOURCE_FILENAME=mattermost-team-5.33.0-linux-amd64.tar.gz From 8f367e2b02df4c7b2cf2864911685bfaa305f19b Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Wed, 17 Mar 2021 18:34:25 -0400 Subject: [PATCH 04/17] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 62c3750..25bf821 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Open source collaboration platform built for developers", "fr": "Plateforme de collaboration open source conçue pour les développeurs" }, - "version": "5.32.1~ynh1", + "version": "5.33.0~ynh1", "url": "http://www.mattermost.org/", "license": "GPL-3.0-only", "maintainer": { From 34e1d214ae2d41f0fc55b6f0161b389b333e9050 Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Wed, 17 Mar 2021 18:34:47 -0400 Subject: [PATCH 05/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5067312..d8644af 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview Mattermost is a self-hosted, open source instant messaging and service software. It's designed as an internal chat for organizations and businesses, and it's touted as an alternative to Slack. -**Shipped version:** 5.32.1 +**Shipped version:** 5.33.0 ## Screenshots From f87824aef06b4b919383e55259d1c33f5411138c Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Wed, 17 Mar 2021 18:35:20 -0400 Subject: [PATCH 06/17] Update README_fr.md --- README_fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index 408ce62..cb94c9b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Mattermost est un logiciel et un service de messagerie instantanée libre auto-hébergeable. Il est conçu comme un chat interne pour les organisations et les entreprises, et il est présenté comme une alternative à Slack. -**Version incluse :** 5.32.1 +**Version incluse :** 5.33.0 ## Captures d'écran From 10b3deeec87048f4627ff57bc50d36c5d79a7404 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 22:15:35 +0100 Subject: [PATCH 07/17] [fix] This dir could be in giga --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 71939c6..941ad87 100755 --- a/scripts/backup +++ b/scripts/backup @@ -42,7 +42,7 @@ ynh_backup --src_path="$final_path" # BACKUP THE APP DATA #================================================= -ynh_backup --src_path="/home/yunohost.app/$app" +ynh_backup --src_path="/home/yunohost.app/$app" --is_big #================================================= # BACKUP THE NGINX CONFIGURATION From b09591eb5ed3036c3ac3c43a4e38be6b03464642 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 22:18:19 +0100 Subject: [PATCH 08/17] [fix] AVoid to delete data --- scripts/remove | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 26aa613..783d0d0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -58,7 +58,8 @@ ynh_script_progression --message="Removing $app main directory..." --weight=6 # Remove the app directory securely ynh_secure_remove --file="$final_path" -ynh_secure_remove --file="/home/yunohost.app/$app" +# We don't delete this dir as it is marked as is-big +# ynh_secure_remove --file="/home/yunohost.app/$app" #================================================= # REMOVE NGINX CONFIGURATION From 46630b05a50de97a021bdfa69ba6b0f2f95d6daf Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 21 Mar 2021 23:06:11 +0100 Subject: [PATCH 09/17] [fix] Add not mandatory for data --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index b0dcec2..6ece5f9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,7 +70,7 @@ ynh_system_user_create --username=$app # RESTORE THE APP DATA #================================================= -ynh_restore_file --origin_path="/home/yunohost.app/$app" +ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory chown -R $app: "/home/yunohost.app/$app" #================================================= From 7a45244b2049a5e9318308a797e98df2dcd62157 Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Thu, 25 Mar 2021 14:25:01 -0400 Subject: [PATCH 10/17] Update README_fr.md --- README_fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index 408ce62..dce3c26 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Mattermost est un logiciel et un service de messagerie instantanée libre auto-hébergeable. Il est conçu comme un chat interne pour les organisations et les entreprises, et il est présenté comme une alternative à Slack. -**Version incluse :** 5.32.1 +**Version incluse :** 5.33.2 ## Captures d'écran From a06068a00468643a67e197ca4fe71bf4eeb4b25f Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Thu, 25 Mar 2021 14:25:23 -0400 Subject: [PATCH 11/17] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 62c3750..8dfa04a 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Open source collaboration platform built for developers", "fr": "Plateforme de collaboration open source conçue pour les développeurs" }, - "version": "5.32.1~ynh1", + "version": "5.33.2~ynh1", "url": "http://www.mattermost.org/", "license": "GPL-3.0-only", "maintainer": { From 991cf4472614f6100b1f76480f4f65979f8b6a33 Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Thu, 25 Mar 2021 14:25:42 -0400 Subject: [PATCH 12/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5067312..b19abc1 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview Mattermost is a self-hosted, open source instant messaging and service software. It's designed as an internal chat for organizations and businesses, and it's touted as an alternative to Slack. -**Shipped version:** 5.32.1 +**Shipped version:** 5.33.2 ## Screenshots From f1f6b09e13322144ee5aafe3adb9808629d73deb Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Thu, 25 Mar 2021 14:27:21 -0400 Subject: [PATCH 13/17] Update enterprise.src --- conf/enterprise.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/enterprise.src b/conf/enterprise.src index 8b2b950..3ab136a 100644 --- a/conf/enterprise.src +++ b/conf/enterprise.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://releases.mattermost.com/5.32.1/mattermost-5.32.1-linux-amd64.tar.gz -SOURCE_SUM=9117ab9777d8453ae8b63f3a008152a2bdc6a638400640a67a0a359acf479a44 +SOURCE_URL=https://releases.mattermost.com/5.33.2/mattermost-5.33.2-linux-amd64.tar.gz +SOURCE_SUM=36faac7bdf70044beed46e7cc9af755b50ac6c1b6531377be9a7a3edcd65191f SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-5.32.1-linux-amd64.tar.gz +SOURCE_FILENAME=mattermost-5.33.2-linux-amd64.tar.gz From 43e331728cf25cbaae6116ee6f585e8fe15ba786 Mon Sep 17 00:00:00 2001 From: Amy Blais Date: Thu, 25 Mar 2021 14:28:59 -0400 Subject: [PATCH 14/17] Update x86-64.src --- conf/x86-64.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/x86-64.src b/conf/x86-64.src index 9fc7b97..76a6f93 100644 --- a/conf/x86-64.src +++ b/conf/x86-64.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://releases.mattermost.com/5.32.1/mattermost-team-5.32.1-linux-amd64.tar.gz -SOURCE_SUM=86fd99e49b6ed687004d46813e51fd91e761a87dff58fa2878e752728fac555a +SOURCE_URL=https://releases.mattermost.com/5.33.2/mattermost-team-5.33.2-linux-amd64.tar.gz +SOURCE_SUM=d9498dc7b474f80029830cfa1f55221d76c0dd603e38273f7019a97830eba2f5 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-team-5.32.1-linux-amd64.tar.gz +SOURCE_FILENAME=mattermost-team-5.33.2-linux-amd64.tar.gz From 3ebd1cb5904ca9964769122fa8014094129b984e Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Fri, 26 Mar 2021 09:25:45 +0100 Subject: [PATCH 15/17] Upgrade arm and arm64 to 5.33.2 --- conf/arm.src | 6 +++--- conf/arm64.src | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/arm.src b/conf/arm.src index 616257c..4be3eeb 100644 --- a/conf/arm.src +++ b/conf/arm.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v5.32.1/mattermost-v5.32.1-linux-arm.tar.gz -SOURCE_SUM=0dccb34687c755fd2f7eed7d53fcee451500a463253e376233c1c86dd37518689d79f2ec2e20d5c21954331e00220ec5bb74e23dcc0db2b004c68ba0402a3f61 +SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v5.33.2/mattermost-v5.33.2-linux-arm.tar.gz +SOURCE_SUM=4eb2d69da019979c9792435e175a12b4afb19fe66e70747039d247ca4f0769a87b1b1951a90a43edd021a898dee00946cbeac9ce213e670aeb5fce3203fa4303 SOURCE_SUM_PRG=sha512sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-v5.32.1-linux-arm.tar.gz +SOURCE_FILENAME=mattermost-v5.33.2-linux-arm.tar.gz diff --git a/conf/arm64.src b/conf/arm64.src index 8fccf34..dafb14a 100644 --- a/conf/arm64.src +++ b/conf/arm64.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v5.32.1/mattermost-v5.32.1-linux-arm64.tar.gz -SOURCE_SUM=83ded96774f3d3b178959f736f64f458d097a738f89e81d992b908173249f2745559caab799fc701ba66efd8e58bca389fbde9f612a9f61e515c11a9726d6910 +SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v5.33.2/mattermost-v5.33.2-linux-arm64.tar.gz +SOURCE_SUM=b07ef96872348a481a62fd1ae5c91db8de83b9a03a5281f6b21f75b6c624694f8f53393fb3fa77f2a0d78ad7313a4536ad88ae122cb2957d419ec98f111430c8 SOURCE_SUM_PRG=sha512sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mattermost-v5.32.1-linux-arm64.tar.gz +SOURCE_FILENAME=mattermost-v5.33.2-linux-arm64.tar.gz From df4dc0b5056bd061aa2250fcf846bfff55315a34 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 4 Apr 2021 17:09:23 +0200 Subject: [PATCH 16/17] Update config.json --- conf/config.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/conf/config.json b/conf/config.json index 80df047..7da3fc0 100644 --- a/conf/config.json +++ b/conf/config.json @@ -108,6 +108,7 @@ "EnableOpenServer": false, "EnableUserDeactivation": false, "RestrictCreationToDomains": "", + "EnableCustomUserStatuses": true, "EnableCustomBrand": false, "CustomBrandText": "", "CustomDescriptionText": "", @@ -149,6 +150,7 @@ "DataSourceSearchReplicas": [], "MaxIdleConns": 20, "ConnMaxLifetimeMilliseconds": 3600000, + "ConnMaxIdleTimeMilliseconds": 300000, "MaxOpenConns": 300, "Trace": false, "AtRestEncryptKey": "", @@ -199,7 +201,7 @@ "EnableFileAttachments": true, "EnableMobileUpload": true, "EnableMobileDownload": true, - "MaxFileSize": 52428800, + "MaxFileSize": 104857600, "DriverName": "local", "Directory": "__DATA_PATH__", "EnablePublicLink": false, @@ -437,7 +439,8 @@ "BindAddress": "", "AdvertiseAddress": "", "UseIpAddress": true, - "UseExperimentalGossip": false, + "UseExperimentalGossip": true, + "EnableGossipCompression": true, "EnableExperimentalGossipEncryption": false, "ReadOnlyConfig": true, "GossipPort": 8074, @@ -565,10 +568,15 @@ "TestBoolFeature": false, "CloudDelinquentEmailJobsEnabled": false, "CollapsedThreads": false, - "PluginIncidentManagement": "1.3.2" + "CustomUserStatuses": true, + "PluginIncidentManagement": "1.4.0" }, "ImportSettings": { "Directory": "./import", "RetentionDays": 30 + }, + "ExportSettings": { + "Directory": "./export", + "RetentionDays": 30 } } \ No newline at end of file From 56e0edac4664322052c2e4c2140a651f193642a7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 4 Apr 2021 19:50:09 +0200 Subject: [PATCH 17/17] Update manifest.json --- manifest.json | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index d2d1cc4..6e49f58 100644 --- a/manifest.json +++ b/manifest.json @@ -19,24 +19,36 @@ "mysql" ], "requirements": { - "yunohost": ">= 4.1.7" + "yunohost": ">= 3.8.1" }, "arguments": { "install" : [ { "name": "domain", "type": "domain", + "ask": { + "en": "Choose a domain for Mattermost", + "fr": "Choisissez un domaine pour Mattermost" + }, "example": "domain.org" }, { "name": "path", "type": "path", + "ask": { + "en": "Choose a path for Mattermost", + "fr": "Choisissez un chemin pour Mattermost" + }, "example": "/mattermost", "default": "/chat" }, { "name": "is_public", "type": "boolean", + "ask": { + "en": "Is it a public application?", + "fr": "Est-ce une application publique ?" + }, "help": { "en": "If enabled, Mattermost will be accessible by the user without a YunoHost account. This can be changed later via the webadmin.", "fr": "Si cette case est cochée, Mattermost sera accessible par l'utilisateur sans compte YunoHost. Vous pourrez changer ceci plus tard via l’interface d’administration." @@ -46,11 +58,19 @@ { "name": "admin", "type": "user", + "ask": { + "en": "Choose an admin user", + "fr": "Choisissez l'administrateur" + }, "example": "johndoe" }, { "name": "password", "type": "password", + "ask": { + "en": "Set the administrator password", + "fr": "Définissez le mot de passe administrateur" + }, "example": "Choose a password" }, { @@ -61,9 +81,9 @@ "fr": "Choisissez la version que vous souhaitez installer" }, "help": { - "en": "Use Team Edition for the open source version (ARM, ARM64 and x86-64 support) or Enterprise Edition if you want to use a license (x86-64 support only)", - "fr": "Utilisez Team Edition pour la version open source (prise en charge ARM, ARM64 et x86-64) ou Enterprise Edition si vous souhaitez utiliser une licence (prise en charge x86-64 uniquement)" - }, + "en": "Use Team Edition for the open source version (ARM, ARM64 and x86-64 support) or Enterprise Edition if you want to use a license (x86-64 support only)", + "fr": "Utilisez Team Edition pour la version open source (prise en charge ARM, ARM64 et x86-64) ou Enterprise Edition si vous souhaitez utiliser une licence (prise en charge x86-64 uniquement)" + }, "choices": ["Enterprise", "Team"], "default": "Team" },