Merge "ironic-agent postinst fails on systemd with no iptables"

This commit is contained in:
Jenkins 2016-04-04 19:35:42 +00:00 committed by Gerrit Code Review
commit 792036ec62

View File

@ -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)