1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Fix links

This commit is contained in:
ericgaspar 2021-01-17 11:25:39 +01:00
parent d40c9060c5
commit 3a30f33b64
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 7 deletions

View file

@ -244,7 +244,6 @@ ynh_use_logrotate --logfile "/var/log/$app"
# For any update do it in all files
cp ../sources/Coturn_config_rotate.sh $final_path/Coturn_config_rotate.sh
ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/Coturn_config_rotate.sh"
#=================================================
# GENERIC FINALIZATION

View file

@ -1,6 +1,5 @@
#!/bin/bash
app_instance=__APP__
source /usr/share/yunohost/helpers
@ -19,15 +18,15 @@ then
echo "external-ip=$public_ip6" >> "$coturn_config_path"
fi
old_config_line=$(egrep "^external-ip=.*\$" "/etc/matrix-$app_instance/coturn.conf")
ynh_replace_string "^external-ip=.*\$" "$external_IP_line" "/etc/matrix-$app_instance/coturn.conf"
new_config_line=$(egrep "^external-ip=.*\$" "/etc/matrix-$app_instance/coturn.conf")
old_config_line=$(egrep "^external-ip=.*\$" "/etc/$app/coturn.conf")
ynh_replace_string "^external-ip=.*\$" "$external_IP_line" "/etc/$app/coturn.conf"
new_config_line=$(egrep "^external-ip=.*\$" "/etc/$app/coturn.conf")
setfacl -R -m user:turnserver:rX /etc/matrix-$app_instance
setfacl -R -m user:turnserver:rX /etc/$app
if [ "$old_config_line" != "$new_config_line" ]
then
systemctl restart coturn-$app_instance.service
systemctl restart coturn-$app.service
fi
exit 0