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