Merge "ironic-agent postinst fails on systemd with no iptables"
This commit is contained in:
commit
792036ec62
@ -20,7 +20,9 @@ case "$DIB_INIT_SYSTEM" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
systemd)
|
systemd)
|
||||||
|
if [[ $(systemctl --no-pager list-unit-files iptables) =~ 'enabled' ]]; then
|
||||||
systemctl disable iptables.service
|
systemctl disable iptables.service
|
||||||
|
fi
|
||||||
systemctl enable $(svc-map ironic-python-agent).service
|
systemctl enable $(svc-map ironic-python-agent).service
|
||||||
;;
|
;;
|
||||||
sysv)
|
sysv)
|
||||||
|
Loading…
Reference in New Issue
Block a user