- minor cleanup in bind-chroot-admin
This commit is contained in:
parent
eff12eee3b
commit
8af0fe42da
@ -230,7 +230,7 @@ function sync_files()
|
|||||||
done
|
done
|
||||||
pfx=${BIND_CHROOT_PREFIX}
|
pfx=${BIND_CHROOT_PREFIX}
|
||||||
else # chroot is disabled
|
else # chroot is disabled
|
||||||
/usr/bin/find /var/named/chroot/{etc/{named.*,rndc.*},var/named{/*,/data/*,/slaves/*,/dynamic/*}} -maxdepth 0 |
|
/usr/bin/find /var/named/chroot/{etc/{named.*,rndc.*},var/{named{/*,/data/*,/slaves/*,/dynamic/*},log/named.log}} -maxdepth 0 |
|
||||||
while read f;
|
while read f;
|
||||||
do
|
do
|
||||||
if [ ! -d "$f" ]; then
|
if [ ! -d "$f" ]; then
|
||||||
@ -238,8 +238,6 @@ function sync_files()
|
|||||||
[ ! -e $changed ] && touch $changed;
|
[ ! -e $changed ] && touch $changed;
|
||||||
fi;
|
fi;
|
||||||
done
|
done
|
||||||
[ -L /var/log/named.log ] && rm -f /var/log/named.log
|
|
||||||
[ -e ${BIND_CHROOT_PREFIX}/var/log/named.log ] && mv -f ${BIND_CHROOT_PREFIX}/var/log/named.log /var/log/named.log
|
|
||||||
fi;
|
fi;
|
||||||
if [ ! -e ${pfx}/etc/rndc.key ]; then
|
if [ ! -e ${pfx}/etc/rndc.key ]; then
|
||||||
echo 'key "rndckey" {
|
echo 'key "rndckey" {
|
||||||
|
@ -21,7 +21,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: ISC
|
License: ISC
|
||||||
Version: 9.5.0
|
Version: 9.5.0
|
||||||
Release: 16.1.%{RELEASEVER}%{?dist}
|
Release: 16.2.%{RELEASEVER}%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -651,6 +651,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_sbindir}/bind-chroot-admin
|
%{_sbindir}/bind-chroot-admin
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 26 2007 Adam Tkac <atkac redhat com> 32:9.5.0-16.2.a6
|
||||||
|
- minor cleanup in bind-chroot-admin
|
||||||
|
|
||||||
* Wed Oct 25 2007 Adam Tkac <atkac redhat com> 32:9.5.0-16.1.a6
|
* Wed Oct 25 2007 Adam Tkac <atkac redhat com> 32:9.5.0-16.1.a6
|
||||||
- fixed typo in initscript
|
- fixed typo in initscript
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user