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:
parent
d40c9060c5
commit
3a30f33b64
2 changed files with 5 additions and 7 deletions
|
@ -244,7 +244,6 @@ ynh_use_logrotate --logfile "/var/log/$app"
|
||||||
# For any update do it in all files
|
# For any update do it in all files
|
||||||
|
|
||||||
cp ../sources/Coturn_config_rotate.sh $final_path/Coturn_config_rotate.sh
|
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
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
app_instance=__APP__
|
|
||||||
|
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
@ -19,15 +18,15 @@ then
|
||||||
echo "external-ip=$public_ip6" >> "$coturn_config_path"
|
echo "external-ip=$public_ip6" >> "$coturn_config_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
old_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/matrix-$app_instance/coturn.conf"
|
ynh_replace_string "^external-ip=.*\$" "$external_IP_line" "/etc/$app/coturn.conf"
|
||||||
new_config_line=$(egrep "^external-ip=.*\$" "/etc/matrix-$app_instance/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" ]
|
if [ "$old_config_line" != "$new_config_line" ]
|
||||||
then
|
then
|
||||||
systemctl restart coturn-$app_instance.service
|
systemctl restart coturn-$app.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue