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:
parent
12bebea2ab
commit
9245323154
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
coturn_config_path="/etc/turnserver.conf"
|
||||||
|
|
||||||
external_IP_line="external-ip=__IPV4__,__IPV6__"
|
external_IP_line="external-ip=__IPV4__,__IPV6__"
|
||||||
|
|
||||||
public_ip4="$(curl ip.yunohost.org)" || true
|
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" ]
|
if [ "$old_config_line" != "$new_config_line" ]
|
||||||
then
|
then
|
||||||
systemctl restart $app.service
|
systemctl restart __APP__.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue