mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Merge pull request #331 from YunoHost-Apps/testing
Merge testing into master
This commit is contained in:
commit
b28b98ccd6
11 changed files with 37 additions and 28 deletions
4
.github/workflows/updater.sh
vendored
4
.github/workflows/updater.sh
vendored
|
@ -79,13 +79,13 @@ echo "Handling asset at $asset_url"
|
||||||
# Leave $src empty to ignore the asset
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*"mattermost-"*"-linux-arm.tar.gz")
|
*"mattermost-"*"-linux-arm.tar.gz")
|
||||||
src="arm"
|
src="armhf"
|
||||||
;;
|
;;
|
||||||
*"mattermost-"*"-linux-arm64.tar.gz")
|
*"mattermost-"*"-linux-arm64.tar.gz")
|
||||||
src="arm64"
|
src="arm64"
|
||||||
;;
|
;;
|
||||||
*"mattermost-team-"*"-linux-amd64.tar.gz")
|
*"mattermost-team-"*"-linux-amd64.tar.gz")
|
||||||
src="x86-64"
|
src="amd64"
|
||||||
;;
|
;;
|
||||||
*"mattermost-enterprise-"*"-linux-amd64.tar.gz")
|
*"mattermost-enterprise-"*"-linux-amd64.tar.gz")
|
||||||
src="enterprise"
|
src="enterprise"
|
||||||
|
|
|
@ -37,7 +37,7 @@ To explore the benefits of Mattermost’s enterprise features, you can replace t
|
||||||
- Multiple languages including U.S. English, Australian English, Bulgarian, Chinese (Simplified and Traditional), Dutch, French, German, Hungarian, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Romanian, Russian, Turkish, Spanish, Swedish, and Ukrainian
|
- Multiple languages including U.S. English, Australian English, Bulgarian, Chinese (Simplified and Traditional), Dutch, French, German, Hungarian, Italian, Japanese, Korean, Polish, Brazilian Portuguese, Romanian, Russian, Turkish, Spanish, Swedish, and Ukrainian
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 6.2.1~ynh1
|
**Shipped version:** 6.3.1~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Pour explorer les avantages des fonctionnalités d'entreprise de Mattermost, vou
|
||||||
- Plusieurs langues dont l'anglais américain, l'anglais australien, le bulgare, le chinois (simplifié et traditionnel), le néerlandais, le français, l'allemand, le hongrois, l'italien, le japonais, le coréen, le polonais, le portugais brésilien, le roumain, le russe, le turc, l'espagnol, le suédois et l'ukrainien
|
- Plusieurs langues dont l'anglais américain, l'anglais australien, le bulgare, le chinois (simplifié et traditionnel), le néerlandais, le français, l'allemand, le hongrois, l'italien, le japonais, le coréen, le polonais, le portugais brésilien, le roumain, le russe, le turc, l'espagnol, le suédois et l'ukrainien
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 6.2.1~ynh1
|
**Version incluse :** 6.3.1~ynh1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,9 @@ module Mattermost
|
||||||
|
|
||||||
def retrieve_release_data
|
def retrieve_release_data
|
||||||
case @variant
|
case @variant
|
||||||
when :'x86-64', :enterprise
|
when :amd64, :enterprise
|
||||||
retrieve_first_party_release_data
|
retrieve_first_party_release_data
|
||||||
when :arm, :arm64
|
when :armhf, :arm64
|
||||||
retrieve_smart_honeybee_release_data
|
retrieve_smart_honeybee_release_data
|
||||||
else
|
else
|
||||||
raise "Unsupported variant '{#release_desc.variant}'"
|
raise "Unsupported variant '{#release_desc.variant}'"
|
||||||
|
@ -47,7 +47,7 @@ module Mattermost
|
||||||
|
|
||||||
def retrieve_first_party_release_data
|
def retrieve_first_party_release_data
|
||||||
edition = {
|
edition = {
|
||||||
'x86-64': 'team',
|
amd64: 'team',
|
||||||
enterprise: 'enterprise'
|
enterprise: 'enterprise'
|
||||||
}.fetch(variant)
|
}.fetch(variant)
|
||||||
|
|
||||||
|
@ -59,7 +59,12 @@ module Mattermost
|
||||||
end
|
end
|
||||||
|
|
||||||
def retrieve_smart_honeybee_release_data
|
def retrieve_smart_honeybee_release_data
|
||||||
@url = "https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v#{version}/mattermost-v#{version}-linux-#{variant}.tar.gz"
|
arch = {
|
||||||
|
armhf: 'arm',
|
||||||
|
arm64: 'arm64'
|
||||||
|
}.fetch(variant)
|
||||||
|
|
||||||
|
@url = "https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v#{version}/mattermost-v#{version}-linux-#{arch}.tar.gz"
|
||||||
|
|
||||||
puts "Downloading release #{version}-#{variant} for computing checksum…"
|
puts "Downloading release #{version}-#{variant} for computing checksum…"
|
||||||
release_file = URI.parse(@url).read
|
release_file = URI.parse(@url).read
|
||||||
|
@ -122,7 +127,7 @@ if version.nil?
|
||||||
abort("ERROR: The Mattermost release version must be provided.\nExample: ./bump-mattermost.sh 5.33.1")
|
abort("ERROR: The Mattermost release version must be provided.\nExample: ./bump-mattermost.sh 5.33.1")
|
||||||
end
|
end
|
||||||
|
|
||||||
VARIANTS = %i[x86-64 enterprise arm arm64]
|
VARIANTS = %i[amd64 enterprise armhf arm64]
|
||||||
|
|
||||||
# Compute releases URLs and sums
|
# Compute releases URLs and sums
|
||||||
releases = VARIANTS
|
releases = VARIANTS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://releases.mattermost.com/6.2.1/mattermost-team-6.2.1-linux-amd64.tar.gz
|
SOURCE_URL=https://releases.mattermost.com/6.3.1/mattermost-team-6.3.1-linux-amd64.tar.gz
|
||||||
SOURCE_SUM=4fcc4185ff3a5f6f6e96c327bfeef48e11621cf8b850a66821b469dcf9c6bb10
|
SOURCE_SUM=3a612b3d8045a58bf845747a6ba7bd2a9ed5e8a7d2ee076a92e463dafadf7f72
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v6.2.1/mattermost-v6.2.1-linux-arm64.tar.gz
|
SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v6.3.1/mattermost-v6.3.1-linux-arm64.tar.gz
|
||||||
SOURCE_SUM=d63df70e27ee71fbb802b322b74a93168b0f19d3283865dd5dbf69d8daa9b4b0
|
SOURCE_SUM=6014da3b34e75f7cdffc9054c6bad849677c2b7e10993865fd172e8ba4a552c7
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v6.2.1/mattermost-v6.2.1-linux-arm.tar.gz
|
SOURCE_URL=https://github.com/SmartHoneybee/ubiquitous-memory/releases/download/v6.3.1/mattermost-v6.3.1-linux-arm.tar.gz
|
||||||
SOURCE_SUM=44b1fdd99f91448d6d6d0becff52804e30b0da8bb6dd6b4ad884da2605342532
|
SOURCE_SUM=1ed236b7de9657b2aeb26507842fd4b8b9be962c5afc6f4f8d8b89b9e84a4417
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -32,10 +32,11 @@
|
||||||
"RestrictLinkPreviews": "",
|
"RestrictLinkPreviews": "",
|
||||||
"EnableTesting": false,
|
"EnableTesting": false,
|
||||||
"EnableDeveloper": false,
|
"EnableDeveloper": false,
|
||||||
|
"DeveloperFlags": "",
|
||||||
"EnableOpenTracing": false,
|
"EnableOpenTracing": false,
|
||||||
"EnableSecurityFixAlert": true,
|
"EnableSecurityFixAlert": true,
|
||||||
"EnableInsecureOutgoingConnections": false,
|
"EnableInsecureOutgoingConnections": false,
|
||||||
"AllowedUntrustedInternalConnections": "",
|
"AllowedUntrustedInternalConnections": "api.integrations.mattermost.com",
|
||||||
"EnableMultifactorAuthentication": false,
|
"EnableMultifactorAuthentication": false,
|
||||||
"EnforceMultifactorAuthentication": false,
|
"EnforceMultifactorAuthentication": false,
|
||||||
"EnableUserAccessTokens": false,
|
"EnableUserAccessTokens": false,
|
||||||
|
@ -92,8 +93,7 @@
|
||||||
"DebugSplit": false,
|
"DebugSplit": false,
|
||||||
"ThreadAutoFollow": true,
|
"ThreadAutoFollow": true,
|
||||||
"CollapsedThreads": "disabled",
|
"CollapsedThreads": "disabled",
|
||||||
"ManagedResourcePaths": "",
|
"ManagedResourcePaths": ""
|
||||||
"EnableReliableWebSockets": false
|
|
||||||
},
|
},
|
||||||
"TeamSettings": {
|
"TeamSettings": {
|
||||||
"SiteName": "Mattermost",
|
"SiteName": "Mattermost",
|
||||||
|
@ -121,8 +121,6 @@
|
||||||
"ClientRequirements": {
|
"ClientRequirements": {
|
||||||
"AndroidLatestVersion": "",
|
"AndroidLatestVersion": "",
|
||||||
"AndroidMinVersion": "",
|
"AndroidMinVersion": "",
|
||||||
"DesktopLatestVersion": "",
|
|
||||||
"DesktopMinVersion": "",
|
|
||||||
"IosLatestVersion": "",
|
"IosLatestVersion": "",
|
||||||
"IosMinVersion": ""
|
"IosMinVersion": ""
|
||||||
},
|
},
|
||||||
|
@ -570,18 +568,22 @@
|
||||||
"CollapsedThreads": true,
|
"CollapsedThreads": true,
|
||||||
"EnableRemoteClusterService": false,
|
"EnableRemoteClusterService": false,
|
||||||
"AppsEnabled": false,
|
"AppsEnabled": false,
|
||||||
|
"AppBarEnabled": false,
|
||||||
"PluginPlaybooks": "",
|
"PluginPlaybooks": "",
|
||||||
"PluginApps": "",
|
"PluginApps": "",
|
||||||
"PluginFocalboard": "",
|
"PluginFocalboard": "",
|
||||||
"PermalinkPreviews": true,
|
"PermalinkPreviews": true,
|
||||||
"GlobalHeader": true,
|
"GlobalHeader": true,
|
||||||
"AddChannelButton": "by_team_name",
|
"AddChannelButton": "by_team_name",
|
||||||
"PrewrittenMessages": "tour_point",
|
|
||||||
"DownloadAppsCTA": "tips_and_next_steps",
|
|
||||||
"NewAccountNoisy": false,
|
"NewAccountNoisy": false,
|
||||||
"BoardsUnfurl": true,
|
"BoardsUnfurl": true,
|
||||||
"CallsMobile": false,
|
"CallsMobile": false,
|
||||||
"AutoTour": "none"
|
"AutoTour": "none",
|
||||||
|
"BoardsFeatureFlags": "",
|
||||||
|
"AddMembersToChannel": "top",
|
||||||
|
"GuidedChannelCreation": false,
|
||||||
|
"ResendInviteEmailInterval": "",
|
||||||
|
"InviteToTeam": "none"
|
||||||
},
|
},
|
||||||
"ImportSettings": {
|
"ImportSettings": {
|
||||||
"Directory": "./import",
|
"Directory": "./import",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://releases.mattermost.com/6.2.1/mattermost-enterprise-6.2.1-linux-amd64.tar.gz
|
SOURCE_URL=https://releases.mattermost.com/6.3.1/mattermost-enterprise-6.3.1-linux-amd64.tar.gz
|
||||||
SOURCE_SUM=a55fccc0c08af2f3330125ee335f9e3dc6ab220adc3409052c47663f26bdd751
|
SOURCE_SUM=945c1266c01c42eb964cdfb8c027bb1832e4869d404a7e4613bfcae55a69af5e
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Open source collaboration platform built for developers",
|
"en": "Open source collaboration platform built for developers",
|
||||||
"fr": "Plateforme de collaboration open source conçue pour les développeurs"
|
"fr": "Plateforme de collaboration open source conçue pour les développeurs"
|
||||||
},
|
},
|
||||||
"version": "6.2.1~ynh1",
|
"version": "6.3.1~ynh1",
|
||||||
"url": "http://www.mattermost.org/",
|
"url": "http://www.mattermost.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
|
|
@ -126,8 +126,9 @@ then
|
||||||
# Create a temporary directory
|
# Create a temporary directory
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file and local plugins in the temp dir
|
||||||
cp -a "$final_path/config/config.json" "$tmpdir/config.json"
|
cp -a "$final_path/config/config.json" "$tmpdir/config.json"
|
||||||
|
cp -ar "$final_path/plugins" "$tmpdir/plugins"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file="$final_path"
|
ynh_secure_remove --file="$final_path"
|
||||||
|
@ -138,8 +139,9 @@ then
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy the admin saved settings from tmp directory to final path
|
# Copy the admin saved settings and plugins from tmp directory to final path
|
||||||
cp -a "$tmpdir/config.json" "$final_path/config/config.json"
|
cp -a "$tmpdir/config.json" "$final_path/config/config.json"
|
||||||
|
cp -ar --no-clobber "$tmpdir/plugins" "$final_path/"
|
||||||
|
|
||||||
# Remove the tmp directory securely
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue