#!/bin/sh -e

source /usr/share/debconf/confmodule

# Borrowed from Debian.
_systemctl() {
	if [ -z "$DPKG_ROOT" ] && [ -d /run/systemd/system ]; then
		systemctl "$@" 1>&2
	else
		return 127
	fi
}

# Note: `db_input high' is the minimum input level to show a dialog.
#
# https://askubuntu.com/a/476574
db_fset firewalld/select_auto_reload seen false
if _systemctl is-active --quiet firewalld; then
	db_input high firewalld/select_auto_reload || true
	db_go
fi
