mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Fix
This commit is contained in:
parent
e12dac5bfd
commit
aee2bc28e3
3 changed files with 3 additions and 12 deletions
|
@ -90,7 +90,7 @@
|
|||
"EnableInlineLatex": true,
|
||||
"EnableAPIChannelDeletion": false,
|
||||
"EnableLocalMode": true,
|
||||
"LocalModeSocketLocation": "__LOCAL_SOCKET_PATH__",
|
||||
"LocalModeSocketLocation": "/var/run/__APP__/mattermost_local.socket",
|
||||
"EnableAWSMetering": false,
|
||||
"SplitKey": "",
|
||||
"FeatureFlagSyncIntervalSeconds": 30,
|
||||
|
@ -177,7 +177,7 @@
|
|||
"EnableFile": true,
|
||||
"FileLevel": "INFO",
|
||||
"FileJson": true,
|
||||
"FileLocation": "__LOGS_PATH__",
|
||||
"FileLocation": "/var/log/__APP__",
|
||||
"AdvancedLoggingConfig": ""
|
||||
},
|
||||
"PasswordSettings": {
|
||||
|
|
|
@ -136,8 +136,7 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1
|
|||
# Create log directory
|
||||
mkdir -p /var/log/$app
|
||||
#touch /var/log/$app/$app.log
|
||||
logs_path="/var/log/$app"
|
||||
chown $app -R $logs_path
|
||||
chown $app -R "/var/log/$app"
|
||||
|
||||
# Setup logrotate
|
||||
ynh_use_logrotate
|
||||
|
@ -151,7 +150,6 @@ ynh_script_progression --message="Modifying a config file..." --weight=3
|
|||
|
||||
smtp_user_pwd=$(ynh_string_random --length=24)
|
||||
url=https://$domain$path_url
|
||||
local_socket_path="/var/run/${app}/mattermost_local.socket"
|
||||
|
||||
ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json"
|
||||
|
||||
|
|
|
@ -174,7 +174,6 @@ ynh_script_progression --message="Updating a configuration file..." --weight=3
|
|||
|
||||
smtp_user_pwd=$(ynh_string_random --length=24)
|
||||
url=https://$domain$path_url
|
||||
local_socket_path="/var/run/${app}/mattermost_local.socket"
|
||||
|
||||
ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json"
|
||||
|
||||
|
@ -206,12 +205,6 @@ yunohost service add $app --description="Collaboration platform built for develo
|
|||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||
|
||||
# A lengthy database migration runs when upgrading from a version < 6.0.
|
||||
if dpkg --compare-versions "$previous_upstream_version" lt "6.0.0"
|
||||
then
|
||||
ynh_print_warn --message="Lengthy database migrations will now run. This may take a while..."
|
||||
fi
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action=start --log_path=systemd --line_match="Started Mattermost"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue