1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Merge pull request #255 from YunoHost-Apps/patch

This commit is contained in:
Pierre de La Morinerie 2021-07-01 15:10:50 +02:00 committed by GitHub
commit 191a440fd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 52 deletions

View file

@ -20,14 +20,14 @@
"IdleTimeout": 60, "IdleTimeout": 60,
"MaximumLoginAttempts": 10, "MaximumLoginAttempts": 10,
"GoroutineHealthThreshold": -1, "GoroutineHealthThreshold": -1,
"GoogleDeveloperKey": "",
"EnableOAuthServiceProvider": false, "EnableOAuthServiceProvider": false,
"EnableIncomingWebhooks": true, "EnableIncomingWebhooks": true,
"EnableOutgoingWebhooks": true, "EnableOutgoingWebhooks": true,
"EnableCommands": true, "EnableCommands": true,
"EnableOnlyAdminIntegrations": true,
"EnablePostUsernameOverride": false, "EnablePostUsernameOverride": false,
"EnablePostIconOverride": false, "EnablePostIconOverride": false,
"GoogleDeveloperKey": "",
"EnableOnlyAdminIntegrations": true,
"EnableLinkPreviews": true, "EnableLinkPreviews": true,
"RestrictLinkPreviews": "", "RestrictLinkPreviews": "",
"EnableTesting": false, "EnableTesting": false,
@ -53,11 +53,11 @@
"WebsocketSecurePort": 443, "WebsocketSecurePort": 443,
"WebsocketPort": 80, "WebsocketPort": 80,
"WebserverMode": "gzip", "WebserverMode": "gzip",
"EnableCustomEmoji": true,
"EnableEmojiPicker": true,
"EnableGifPicker": true, "EnableGifPicker": true,
"GfycatApiKey": "2_KtH_W5", "GfycatApiKey": "2_KtH_W5",
"GfycatApiSecret": "3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof", "GfycatApiSecret": "3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof",
"EnableCustomEmoji": true,
"EnableEmojiPicker": true,
"RestrictCustomEmojiCreation": "all", "RestrictCustomEmojiCreation": "all",
"RestrictPostDelete": "all", "RestrictPostDelete": "all",
"AllowEditPost": "always", "AllowEditPost": "always",
@ -100,7 +100,8 @@
"ThreadAutoFollow": true, "ThreadAutoFollow": true,
"CollapsedThreads": "disabled", "CollapsedThreads": "disabled",
"ManagedResourcePaths": "", "ManagedResourcePaths": "",
"EnableLegacySidebar": false "EnableLegacySidebar": false,
"EnableReliableWebSockets": false
}, },
"TeamSettings": { "TeamSettings": {
"SiteName": "Mattermost", "SiteName": "Mattermost",
@ -157,12 +158,14 @@
"Trace": false, "Trace": false,
"AtRestEncryptKey": "", "AtRestEncryptKey": "",
"QueryTimeout": 30, "QueryTimeout": 30,
"DisableDatabaseSearch": false "DisableDatabaseSearch": false,
"ReplicaLagSettings": []
}, },
"LogSettings": { "LogSettings": {
"EnableConsole": true, "EnableConsole": true,
"ConsoleLevel": "INFO", "ConsoleLevel": "INFO",
"ConsoleJson": true, "ConsoleJson": true,
"EnableColor": false,
"EnableFile": true, "EnableFile": true,
"FileLevel": "INFO", "FileLevel": "INFO",
"FileJson": true, "FileJson": true,
@ -186,6 +189,7 @@
"EnableConsole": false, "EnableConsole": false,
"ConsoleLevel": "INFO", "ConsoleLevel": "INFO",
"ConsoleJson": true, "ConsoleJson": true,
"EnableColor": false,
"EnableFile": true, "EnableFile": true,
"FileLevel": "INFO", "FileLevel": "INFO",
"FileJson": true, "FileJson": true,
@ -268,12 +272,12 @@
"ShowFullName": true "ShowFullName": true
}, },
"SupportSettings": { "SupportSettings": {
"TermsOfServiceLink": "https://about.mattermost.com/default-terms/", "TermsOfServiceLink": "https://mattermost.com/terms-of-service/",
"PrivacyPolicyLink": "https://about.mattermost.com/default-privacy-policy/", "PrivacyPolicyLink": "https://mattermost.com/privacy-policy/",
"AboutLink": "https://about.mattermost.com/default-about/", "AboutLink": "https://docs.mattermost.com/overview/product.html",
"HelpLink": "https://about.mattermost.com/default-help/", "HelpLink": "https://academy.mattermost.com/",
"ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/", "ReportAProblemLink": "https://about.mattermost.com/default-report-a-problem/",
"SupportEmail": "feedback@mattermost.com", "SupportEmail": "",
"CustomTermsOfServiceEnabled": false, "CustomTermsOfServiceEnabled": false,
"CustomTermsOfServiceReAcceptancePeriod": 365, "CustomTermsOfServiceReAcceptancePeriod": 365,
"EnableAskCommunityLink": true "EnableAskCommunityLink": true
@ -383,7 +387,8 @@
"ComplianceSettings": { "ComplianceSettings": {
"Enable": false, "Enable": false,
"Directory": "./data/", "Directory": "./data/",
"EnableDaily": false "EnableDaily": false,
"BatchSize": 30000
}, },
"LocalizationSettings": { "LocalizationSettings": {
"DefaultServerLocale": "__LANGUAGE__", "DefaultServerLocale": "__LANGUAGE__",
@ -467,7 +472,8 @@
"UseNewSAMLLibrary": false, "UseNewSAMLLibrary": false,
"CloudUserLimit": 0, "CloudUserLimit": 0,
"CloudBilling": false, "CloudBilling": false,
"EnableSharedChannels": false "EnableSharedChannels": false,
"EnableRemoteClusterService": false
}, },
"AnalyticsSettings": { "AnalyticsSettings": {
"MaxUsersForStatistics": 2500 "MaxUsersForStatistics": 2500
@ -565,15 +571,20 @@
"RemoteImageProxyOptions": "" "RemoteImageProxyOptions": ""
}, },
"CloudSettings": { "CloudSettings": {
"CWSUrl": "https://customers.mattermost.com" "CWSUrl": "https://customers.mattermost.com",
"CWSAPIUrl": "https://portal.internal.prod.cloud.mattermost.com"
}, },
"FeatureFlags": { "FeatureFlags": {
"TestFeature": "off", "TestFeature": "off",
"TestBoolFeature": false, "TestBoolFeature": false,
"CloudDelinquentEmailJobsEnabled": false, "CloudDelinquentEmailJobsEnabled": false,
"CollapsedThreads": false, "CollapsedThreads": false,
"PluginIncidentManagement": "1.5.2", "EnableRemoteClusterService": false,
"FilesSearch": false "AppsEnabled": false,
"PluginIncidentManagement": "1.12.0",
"PluginApps": "",
"PluginFocalboard": "",
"CustomDataRetentionEnabled": false
}, },
"ImportSettings": { "ImportSettings": {
"Directory": "./import", "Directory": "./import",

View file

@ -26,36 +26,24 @@
"mysql" "mysql"
], ],
"requirements": { "requirements": {
"yunohost": ">= 4.1.0" "yunohost": ">= 4.2.0"
}, },
"arguments": { "arguments": {
"install": [ "install": [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain",
"ask": {
"en": "Choose a domain for Mattermost",
"fr": "Choisissez un domaine pour Mattermost"
},
"example": "domain.org" "example": "domain.org"
}, },
{ {
"name": "path", "name": "path",
"type": "path", "type": "path",
"ask": {
"en": "Choose a path for Mattermost",
"fr": "Choisissez un chemin pour Mattermost"
},
"example": "/mattermost", "example": "/mattermost",
"default": "/chat" "default": "/chat"
}, },
{ {
"name": "is_public", "name": "is_public",
"type": "boolean", "type": "boolean",
"ask": {
"en": "Is it a public application?",
"fr": "Est-ce une application publique ?"
},
"help": { "help": {
"en": "If enabled, Mattermost will be accessible by the user without a YunoHost account. This can be changed later via the webadmin.", "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 linterface dadministration." "fr": "Si cette case est cochée, Mattermost sera accessible par l'utilisateur sans compte YunoHost. Vous pourrez changer ceci plus tard via linterface dadministration."
@ -65,19 +53,11 @@
{ {
"name": "admin", "name": "admin",
"type": "user", "type": "user",
"ask": {
"en": "Choose an admin user",
"fr": "Choisissez l'administrateur"
},
"example": "johndoe" "example": "johndoe"
}, },
{ {
"name": "password", "name": "password",
"type": "password", "type": "password",
"ask": {
"en": "Set the administrator password",
"fr": "Définissez le mot de passe administrateur"
},
"example": "Choose a password" "example": "Choose a password"
}, },
{ {

View file

@ -38,21 +38,6 @@ ynh_detect_arch(){
echo $architecture echo $architecture
} }
#================================================= #=================================================
# FUTURE OFFICIAL HELPERS # FUTURE OFFICIAL HELPERS
#================================================= #=================================================
# Execute a command as another user
# usage: ynh_exec_as USER COMMAND [ARG ...]
ynh_exec_as() {
local USER=$1
shift 1
if [[ $USER = $(whoami) ]]; then
eval "$@"
else
sudo -u "$USER" "$@"
fi
}