fi
if [ -d "/etc/freeradius" -a -e "$HOST/rtc-passwords" ]; then
- install -o root -g freerad -m 440 $HOST/rtc-passwords /var/local/rtc-passwords
+ install -o freerad -g freerad -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.freerad
service freeradius reload
+fi
+if [ -d "/etc/reTurn" -a -e "$HOST/rtc-passwords" ]; then
+ install -o return -g return -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.return
service resiprocate-turn-server reload
fi
+if [ -d "/etc/prosody" -a -e "$HOST/rtc-passwords" ]; then
+ install -o prosody -g prosody -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.prosody
+ service prosody reload
+fi