voip port for onion only installs
This commit is contained in:
parent
f3b7043e6f
commit
c1a46656e9
|
@ -9501,12 +9501,13 @@ function install_voip {
|
|||
sed -i 's|#imagemessagelength=.*|imagemessagelength=131072|g' /etc/mumble-server.ini
|
||||
sed -i 's|#allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini
|
||||
sed -i 's|allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini
|
||||
|
||||
VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_ONION_PORT})
|
||||
if [[ $ONION_ONLY != "no" ]]; then
|
||||
sed -i "s|port=.*|port=${VOIP_ONION_PORT}|g" /etc/mumble-server.ini
|
||||
else
|
||||
sed -i "s|port=.*|port=${VOIP_PORT}|g" /etc/mumble-server.ini
|
||||
|
||||
VOIP_ONION_HOSTNAME=
|
||||
if [[ $ONION_ONLY != "no" ]]; then
|
||||
VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_PORT})
|
||||
else
|
||||
VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_ONION_PORT})
|
||||
fi
|
||||
if ! grep -q $"VoIP onion domain" $COMPLETION_FILE; then
|
||||
echo "VoIP onion domain:$VOIP_ONION_HOSTNAME" >> $COMPLETION_FILE
|
||||
|
|
Loading…
Reference in New Issue