1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pairdrop_ynh.git synced 2024-09-03 19:56:16 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-10-08 14:32:55 +02:00
parent 495dba0f23
commit 98a73597b8

View file

@ -57,6 +57,19 @@ ynh_add_systemd_config --service=coturn-$app --template=coturn-pairdrop.service
yunohost service add $app --description="Local file sharing in your browser" --log="/var/log/$app/$app.log"
yunohost service add coturn-$app --description="Coturn TURN server" --log="/var/log/$app/turnserver.log" --needs_exposed_ports $port_turnserver
#=================================================
# SETUP LOGROTATE
#=================================================
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
ynh_use_logrotate --logfile "/var/log/$app"
#=================================================
# SET COTURN CONFIG
#=================================================