fixed broken bind-chroot-admin script
This commit is contained in:
parent
f47d1818a7
commit
168cdeae16
@ -23,13 +23,14 @@
|
|||||||
BIND_CHROOT_PREFIX=${BIND_CHROOT_PREFIX:-@BIND_CHROOT_PREFIX@}
|
BIND_CHROOT_PREFIX=${BIND_CHROOT_PREFIX:-@BIND_CHROOT_PREFIX@}
|
||||||
|
|
||||||
if [ -e /etc/sysconfig/named ]; then
|
if [ -e /etc/sysconfig/named ]; then
|
||||||
BIND_CHROOT_PREFIX=`grep "ROOTDIR" /etc/sysconfig/named |grep \"`
|
BIND_CHROOT_PREFIX_TEMP=`grep "^\s*ROOTDIR" "/etc/sysconfig/named"`
|
||||||
if [ `expr match "$BIND_CHROOT_PREFIX" '#'` -lt `expr match "$BIND_CHROOT_PREFIX" '"'` ]; then
|
BIND_CHROOT_PREFIX_TEMP=${BIND_CHROOT_PREFIX_TEMP#*\=}
|
||||||
BIND_CHROOT_PREFIX=${BIND_CHROOT_PREFIX#*\"}
|
BIND_CHROOT_PREFIX_TEMP=${BIND_CHROOT_PREFIX_TEMP%#*}
|
||||||
BIND_CHROOT_PREFIX=${BIND_CHROOT_PREFIX%#*}
|
if [ ! ${#BIND_CHROOT_PREFIX_TEMP} -eq 0 ]; then
|
||||||
BIND_CHROOT_PREFIX=${BIND_CHROOT_PREFIX%\"*}
|
BIND_CHROOT_PREFIX=$BIND_CHROOT_PREFIX_TEMP
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BIND_DIR=${BIND_DIR:-@BIND_DIR@}
|
BIND_DIR=${BIND_DIR:-@BIND_DIR@}
|
||||||
|
|
||||||
function usage()
|
function usage()
|
||||||
|
@ -17,7 +17,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Version: 9.3.4
|
Version: 9.3.4
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Epoch: 31
|
Epoch: 31
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
@ -744,6 +744,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
:;
|
:;
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 09 2007 Adam Tkac <atkac@redhat.com> 31:9.3.4-6.fc7
|
||||||
|
- fixed broken bind-chroot-admin script (#227995)
|
||||||
|
|
||||||
* Wed Feb 07 2007 Adam Tkac <atkac@redhat.com> 31:9.3.4-5.fc7
|
* Wed Feb 07 2007 Adam Tkac <atkac@redhat.com> 31:9.3.4-5.fc7
|
||||||
- bind-chroot-admin now uses correct chroot path (#227600)
|
- bind-chroot-admin now uses correct chroot path (#227600)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user