Fix a bug on IS_BINDCHROOT check.

The correct package name is bind9 instead of bind!
This commit is contained in:
Romain Dessort 2016-02-02 16:30:04 -05:00
parent cc8ef31a6d
commit 15aaa75664

View file

@ -302,7 +302,7 @@ if [ -e /etc/debian_version ]; then
# Verification si bind est chroote
if [ "$IS_BINDCHROOT" = 1 ]; then
if is_installed bind; then
if is_installed bind9; then
if grep -qE '^OPTIONS=".*-t"' /etc/default/bind9 && grep -qE '^OPTIONS=".*-u"' /etc/default/bind9; then
if [ "$(md5sum /usr/sbin/named)" = "$(md5sum /var/chroot-bind/usr/sbin/named)" ]; then
echo 'IS_BINDCHROOT FAILED!'