1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Add logrotate for turnserver

This commit is contained in:
Josué Tille 2017-12-08 21:07:37 +01:00
parent 95f9c8e381
commit 87c5f176dc
2 changed files with 6 additions and 1 deletions

View file

@ -25,6 +25,7 @@ setup_dir() {
# Create empty dir for synapse
mkdir -p /var/lib/matrix-synapse
mkdir -p /var/log/matrix-synapse
mkdir -p /var/log/turnserver
mkdir -p /etc/matrix-synapse/conf.d
mkdir -p $final_path
}
@ -53,6 +54,7 @@ install_source() {
chown $synapse_user:root -R $final_path
chown $synapse_user:root -R /var/lib/matrix-synapse
chown $synapse_user:root -R /var/log/matrix-synapse
chown turnserver:root -R /var/log/turnserver
chown $synapse_user:root -R /etc/matrix-synapse
}

View file

@ -71,7 +71,7 @@ then
# Open access to server without a button the home
cp ../conf/add_sso_conf.py $final_path
cp ../conf/remove_sso_conf.py $final_path
python $final_path/add_sso_conf.py
python $final_path/add_sso_conf.py || echo "Error while sso config, please add '/_matrix' in /etc/ssowat/conf.json.persistent"
# Create user
ynh_system_user_create $synapse_user /var/lib/matrix-synapse
@ -118,6 +118,9 @@ then
deactivate
fi
# If the turnserver log is not ready configured we configure it now
test -e /var/log/turnserver || (mkdir -p /var/log/turnserver && ynh_use_logrotate /var/log/turnserver)
# Upgrade manually Synapse
install_source