fix bug 145664
This commit is contained in:
parent
23b1ff2738
commit
2dbdf52e23
12
named.init
12
named.init
|
@ -46,11 +46,13 @@ start() {
|
||||||
. /etc/selinux/config
|
. /etc/selinux/config
|
||||||
if [ "$SELINUXTYPE" != "" ] && [ -d /etc/selinux/${SELINUXTYPE} ] && [ -e /etc/selinux/${SELINUXTYPE}/booleans ]; then
|
if [ "$SELINUXTYPE" != "" ] && [ -d /etc/selinux/${SELINUXTYPE} ] && [ -e /etc/selinux/${SELINUXTYPE}/booleans ]; then
|
||||||
. /etc/selinux/${SELINUXTYPE}/booleans
|
. /etc/selinux/${SELINUXTYPE}/booleans
|
||||||
if [ "$named_write_master_zones" -eq 1 ] ; then
|
if echo "$named_write_master_zones" | /bin/egrep -q '^[0-9]+$'; then
|
||||||
/bin/chown -f --from=root:named named:named $ROOTDIR/var/named
|
if [ "$named_write_master_zones" -eq 1 ] ; then
|
||||||
elif [ "$named_write_master_zones" -eq 0 ] ; then
|
/bin/chown -f --from=root:named named:named $ROOTDIR/var/named
|
||||||
/bin/chown -f --from=named:named root:named $ROOTDIR/var/named
|
elif [ "$named_write_master_zones" -eq 0 ] ; then
|
||||||
fi;
|
/bin/chown -f --from=named:named root:named $ROOTDIR/var/named
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
conf_ok=0;
|
conf_ok=0;
|
||||||
|
|
Loading…
Reference in New Issue