packages: bind/named.init - dereference localtime - symlink won't do the jo...

gotar gotar at pld-linux.org
Thu Nov 12 19:57:37 CET 2009


Author: gotar                        Date: Thu Nov 12 18:57:37 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- dereference localtime - symlink won't do the job in chroot

---- Files affected:
packages/bind:
   named.init (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: packages/bind/named.init
diff -u packages/bind/named.init:1.38 packages/bind/named.init:1.39
--- packages/bind/named.init:1.38	Fri May  1 12:55:33 2009
+++ packages/bind/named.init	Thu Nov 12 19:57:32 2009
@@ -41,10 +41,10 @@
 	if [ ! -f /var/lock/subsys/named ]; then
 		msg_starting "Named"
 		modprobe -s capability > /dev/null 2>&1
-		[ -f /etc/localtime ] && cp -a /etc/localtime $CHROOT_TO_DIR/etc/localtime
+		[ -f /etc/localtime ] && cp -aL /etc/localtime $CHROOT_TO_DIR/etc/localtime
 		touch $CHROOT_TO_DIR/named.log && \
 			chown named:named $CHROOT_TO_DIR/named.log
-	 	daemon --pidfile /var/lib/named/named.pid /usr/sbin/named -u named \
+		daemon --pidfile /var/lib/named/named.pid /usr/sbin/named -u named \
 			-t $CHROOT_TO_DIR -c /etc/named.conf $NAMED_OPT </dev/null
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
@@ -67,10 +67,10 @@
 # See how we were called.
 case "$1" in
   start)
-  	start
+	start
 	;;
   stop)
-  	stop
+	stop
 	;;
   status)
 	status named
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bind/named.init?r1=1.38&r2=1.39&f=u



More information about the pld-cvs-commit mailing list