diff --git a/debian/bareos-director.postinst.in b/debian/bareos-director.postinst.in index 7339617a0dc..36e5eba818d 100644 --- a/debian/bareos-director.postinst.in +++ b/debian/bareos-director.postinst.in @@ -45,7 +45,7 @@ case "$1" in fi permissions # on Univention distributions the ucr command allows to open the firewall - if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then + if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then ucr set \ security/packetfilter/package/bareos-director/tcp/@dir_port@/all="ACCEPT" \ security/packetfilter/package/bareos-director/tcp/@dir_port@/all/en="bareos-dir" diff --git a/debian/bareos-filedaemon.postinst.in b/debian/bareos-filedaemon.postinst.in index 5dbdde2b0d2..5c01d088cfa 100644 --- a/debian/bareos-filedaemon.postinst.in +++ b/debian/bareos-filedaemon.postinst.in @@ -47,7 +47,7 @@ case "$1" in fi permissions # on Univention distributions the ucr command allows to open the firewall - if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then + if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then ucr set \ security/packetfilter/package/bareos-filedaemon/tcp/@fd_port@/all="ACCEPT" \ security/packetfilter/package/bareos-filedaemon/tcp/@fd_port@/all/en="bareos-fd" diff --git a/debian/bareos-storage.postinst.in b/debian/bareos-storage.postinst.in index 4b9cad3a4ff..5cc38b6e153 100644 --- a/debian/bareos-storage.postinst.in +++ b/debian/bareos-storage.postinst.in @@ -50,7 +50,7 @@ case "$1" in permissions /usr/lib/bareos/scripts/bareos-config setup_sd_user # on Univention distributions the ucr command allows to open the firewall - if [ -x "/etc/init.d/univention-firewall" ] && type ucr >/dev/null 2>&1; then + if [ -x "/etc/init.d/univention-firewall" ] && which ucr >/dev/null 2>&1; then ucr set \ security/packetfilter/package/bareos-storage/tcp/@sd_port@/all="ACCEPT" \ security/packetfilter/package/bareos-storage/tcp/@sd_port@/all/en="bareos-sd"