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,
|
"EnableInlineLatex": true,
|
||||||
"EnableAPIChannelDeletion": false,
|
"EnableAPIChannelDeletion": false,
|
||||||
"EnableLocalMode": true,
|
"EnableLocalMode": true,
|
||||||
"LocalModeSocketLocation": "__LOCAL_SOCKET_PATH__",
|
"LocalModeSocketLocation": "/var/run/__APP__/mattermost_local.socket",
|
||||||
"EnableAWSMetering": false,
|
"EnableAWSMetering": false,
|
||||||
"SplitKey": "",
|
"SplitKey": "",
|
||||||
"FeatureFlagSyncIntervalSeconds": 30,
|
"FeatureFlagSyncIntervalSeconds": 30,
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
"EnableFile": true,
|
"EnableFile": true,
|
||||||
"FileLevel": "INFO",
|
"FileLevel": "INFO",
|
||||||
"FileJson": true,
|
"FileJson": true,
|
||||||
"FileLocation": "__LOGS_PATH__",
|
"FileLocation": "/var/log/__APP__",
|
||||||
"AdvancedLoggingConfig": ""
|
"AdvancedLoggingConfig": ""
|
||||||
},
|
},
|
||||||
"PasswordSettings": {
|
"PasswordSettings": {
|
||||||
|
|
|
@ -136,8 +136,7 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1
|
||||||
# Create log directory
|
# Create log directory
|
||||||
mkdir -p /var/log/$app
|
mkdir -p /var/log/$app
|
||||||
#touch /var/log/$app/$app.log
|
#touch /var/log/$app/$app.log
|
||||||
logs_path="/var/log/$app"
|
chown $app -R "/var/log/$app"
|
||||||
chown $app -R $logs_path
|
|
||||||
|
|
||||||
# Setup logrotate
|
# Setup logrotate
|
||||||
ynh_use_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)
|
smtp_user_pwd=$(ynh_string_random --length=24)
|
||||||
url=https://$domain$path_url
|
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"
|
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)
|
smtp_user_pwd=$(ynh_string_random --length=24)
|
||||||
url=https://$domain$path_url
|
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"
|
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
|
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
|
# 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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue