mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 8208 - bare metal provisioning
fix wrong result comparsion in prepare_dnsmasq.sh
This commit is contained in:
parent
47a26e3a8a
commit
1a307faefd
@ -165,7 +165,7 @@ config_dnsmasq dhcp-authoritative
|
||||
|
||||
# Open DHCP ports in iptable
|
||||
chkconfig --list iptables | grep "on"
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ $? -eq 0 ]; then
|
||||
iptables-save | grep 'A INPUT -p udp -m udp --dport 67 -j ACCEPT' >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
iptables -I INPUT 1 -p udp --dport 67 -j ACCEPT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user