mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Merge branch 'testing' into PostgreSQL
This commit is contained in:
commit
1175e6ea27
1 changed files with 1 additions and 2 deletions
|
@ -135,7 +135,6 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1
|
|||
|
||||
# Create log directory
|
||||
mkdir -p /var/log/$app
|
||||
#touch /var/log/$app/$app.log
|
||||
chown $app -R "/var/log/$app"
|
||||
|
||||
# Setup logrotate
|
||||
|
@ -195,7 +194,7 @@ bin_mmctl="$final_path/bin/mmctl"
|
|||
# mmctl is not packaged with ARM versions yet
|
||||
if [[ -f "$bin_mmctl" ]]; then
|
||||
export MMCTL_LOCAL=true
|
||||
export MMCTL_LOCAL_SOCKET_PATH="$local_socket_path"
|
||||
export MMCTL_LOCAL_SOCKET_PATH="/var/run/${app}/mattermost_local.socket"
|
||||
|
||||
ynh_exec_warn_less sudo --preserve-env -u $app "$bin_mmctl" user create --username "$admin" --email "$email" --password "$password" --locale "$language" --email-verified --system-admin
|
||||
ynh_exec_warn_less sudo --preserve-env -u $app "$bin_mmctl" team create --name "$team_name" --display_name "$team_display_name" --email "$email"
|
||||
|
|
Loading…
Reference in a new issue