mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
commit
24c2e935bd
3 changed files with 21 additions and 0 deletions
|
@ -36,3 +36,10 @@ Run the upgrade from Yunohost, then follow [this guide](https://docs.mattermost.
|
|||
|
||||
* Allow installation in sub-directory (only root-domains work for now)
|
||||
* LDAP integration
|
||||
|
||||
## About telemetrics
|
||||
Mattermost is used to send some telemetrics about your usage of it.
|
||||
But this data doesn't send to mattermost, but to a third party site named [segment.com](https://segment.com/).
|
||||
You can find more information about his behavior on the [mattermost documentation](https://docs.mattermost.com/administration/telemetry.html).
|
||||
|
||||
This behavior can be turn on or off when you install this app.
|
||||
|
|
|
@ -34,6 +34,15 @@
|
|||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"default": "Yes"
|
||||
},
|
||||
{
|
||||
"name": "analytics",
|
||||
"type": "boolean",
|
||||
"ask": {
|
||||
"en": "Do you want to allow Mattermost to send some telemetrics about your usage of this app?",
|
||||
"fr": "Autorisez-vous Mattermost à envoyer des informations anonymes sur votre usage de l’application ?"
|
||||
},
|
||||
"default": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ set -e # Exit on error
|
|||
# Retrieve arguments
|
||||
domain=$1
|
||||
is_public=$2
|
||||
analytics=$YNH_APP_ARG_ANALYTICS
|
||||
path=""
|
||||
|
||||
# Set up common variables
|
||||
|
@ -96,6 +97,10 @@ sudo sed -i "s|\"SMTPPort\": \"\"|\"SMTPPort\": \"25\"|g"
|
|||
|
||||
sudo sed -i "s|\"EnableConsole\": true|\"EnableConsole\": false|g" $final_path/config/config.json
|
||||
sudo sed -i "s|\"FileLocation\": \"\"|\"FileLocation\": \"/var/log/mattermost.log\"|g" $final_path/config/config.json
|
||||
if [ $analytics -eq 0 ]; then
|
||||
sudo sed -i "s|\"EnableDiagnostics\": true|\"EnableDiagnostics\": false|g" $final_path/config/config.json
|
||||
fi
|
||||
sudo yunohost app setting mattermost analytics -v $analytics
|
||||
|
||||
# Set permissions to app directories
|
||||
sudo chown -R www-data: $final_path
|
||||
|
|
Loading…
Reference in a new issue