1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00

Update Coturn_config_rotate.sh

This commit is contained in:
ericgaspar 2021-01-25 11:16:53 +01:00
parent 12bebea2ab
commit 9245323154
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -2,6 +2,8 @@
source /usr/share/yunohost/helpers
coturn_config_path="/etc/turnserver.conf"
external_IP_line="external-ip=__IPV4__,__IPV6__"
public_ip4="$(curl ip.yunohost.org)" || true
@ -25,7 +27,7 @@ new_config_line=$(egrep "^external-ip=.*\$" "/etc/turnserver.conf")
if [ "$old_config_line" != "$new_config_line" ]
then
systemctl restart $app.service
systemctl restart __APP__.service
fi
exit 0