Don't need to remove mumble firewall if it was not installed

This commit is contained in:
Bob Mottram 2016-07-24 11:06:14 +01:00
parent 047d666531
commit de1842e553
1 changed files with 6 additions and 4 deletions

View File

@ -143,10 +143,12 @@ function remove_mumble {
fi
fi
apt-get -y remove --purge mumble-server
iptables -D INPUT -p udp --dport $VOIP_PORT -j ACCEPT
iptables -D INPUT -p tcp --dport $VOIP_PORT -j ACCEPT
function_check save_firewall_settings
save_firewall_settings
if [[ $ONION_ONLY == "no" ]]; then
iptables -D INPUT -p udp --dport $VOIP_PORT -j ACCEPT
iptables -D INPUT -p tcp --dport $VOIP_PORT -j ACCEPT
function_check save_firewall_settings
save_firewall_settings
fi
if [ -f /etc/mumble-server.ini ]; then
rm /etc/mumble-server.ini
fi