479 |
%pre |
%pre |
480 |
%_pre_useradd named /var/lib/named /bin/false |
%_pre_useradd named /var/lib/named /bin/false |
481 |
|
|
|
# adjust home dir location if needed |
|
|
if [ "`getent passwd named | awk -F: '{print $6}'`" == "/var/named" ]; then |
|
|
usermod -d /var/lib/named named |
|
|
fi |
|
|
|
|
482 |
# check if bind is chrooted and try to restore it |
# check if bind is chrooted and try to restore it |
483 |
if [ -x %{_sbindir}/bind-chroot.sh ]; then |
if [ -x %{_sbindir}/bind-chroot.sh ]; then |
484 |
ROOTDIR="/var/lib/named-chroot" |
ROOTDIR="/var/lib/named-chroot" |