Skip to content
Snippets Groups Projects
Commit e6e7711f authored by Bob Mottram's avatar Bob Mottram
Browse files

Only append to firewall list if needed

parent e9c47c39
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,9 @@ function firewall_enable_vpn {
iptables -A OUTPUT -o tun+ -j ACCEPT
save_firewall_settings
echo "VPN=1194" >> $FIREWALL_CONFIG
if ! grep -q "VPN=" $FIREWALL_CONFIG; then
echo "VPN=1194" >> $FIREWALL_CONFIG
fi
}
function configure_firewall {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment