wok rev 5086

awstats, openldap: fix postfix (chroot)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 15 12:39:19 2010 +0100 (2010-03-15)
parents f055b093be32
children e0cee896adcf
files awstats/receipt openldap/receipt
line diff
     1.1 --- a/awstats/receipt	Sun Mar 14 21:46:07 2010 +0000
     1.2 +++ b/awstats/receipt	Mon Mar 15 12:39:19 2010 +0100
     1.3 @@ -41,8 +41,8 @@
     1.4  	if [ -f $1/etc/apache/httpd.conf ]; then
     1.5  		if [ ! -f $1/etc/apache/conf.d/awstats.conf ]; then
     1.6  			
     1.7 -			cp /usr/share/awstats/extras/awstats-apache.conf \
     1.8 -				/etc/apache/conf.d/awstats.conf
     1.9 +			cp $1/usr/share/awstats/extras/awstats-apache.conf \
    1.10 +				$1/etc/apache/conf.d/awstats.conf
    1.11  		fi
    1.12  		if [ -z "$1" ]; then
    1.13  			# Start Web server if necessary.
    1.14 @@ -54,8 +54,8 @@
    1.15  
    1.16  	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    1.17  		if [ ! -f $1/etc/lighttpd/awstats.conf ]; then
    1.18 -			cp /usr/share/awstats/extras/awstats-lighttpd.conf \
    1.19 -				/etc/lighttpd/awstats.conf			
    1.20 +			cp $1/usr/share/awstats/extras/awstats-lighttpd.conf \
    1.21 +				$1/etc/lighttpd/awstats.conf			
    1.22  		fi
    1.23  					# Start Web server if necessary.
    1.24  		if [ -f /var/run/lighttpd.pid ]; then
     2.1 --- a/openldap/receipt	Sun Mar 14 21:46:07 2010 +0000
     2.2 +++ b/openldap/receipt	Mon Mar 15 12:39:19 2010 +0100
     2.3 @@ -55,6 +55,6 @@
     2.4  		pkg=$(dirname $file)
     2.5  		[ "$pkg" = "$PACKAGE" ] && continue
     2.6  		echo "Reconfiguring $pkg for $PACKAGE..."
     2.7 -		tazpkg reconfigure $pkg
     2.8 +		chroot $1/ tazpkg reconfigure $pkg
     2.9  	done
    2.10  }