wok diff awstats/receipt @ rev 18734

Remove redundant messages in {pre|post}_{install|remove}() in random packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 21 02:53:09 2015 +0200 (2015-12-21)
parents 1067bb7f1e24
children a6f7b6b890c2
line diff
     1.1 --- a/awstats/receipt	Wed Dec 16 15:49:50 2015 +0100
     1.2 +++ b/awstats/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.3 @@ -62,11 +62,11 @@
     1.4  post_install()
     1.5  {
     1.6  	# Set lighttpd or apache config
     1.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
     1.8 -		if [ ! -f $1/etc/apache/conf.d/awstats.conf ]; then
     1.9 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.10 +		if [ ! -f "$1/etc/apache/conf.d/awstats.conf" ]; then
    1.11  			
    1.12 -			cp $1/usr/share/awstats/extras/awstats-apache.conf \
    1.13 -				$1/etc/apache/conf.d/awstats.conf
    1.14 +			cp "$1/usr/share/awstats/extras/awstats-apache.conf" \
    1.15 +				"$1/etc/apache/conf.d/awstats.conf"
    1.16  		fi
    1.17  		if [ -z "$1" ]; then
    1.18  			# Start Web server if necessary.
    1.19 @@ -76,10 +76,10 @@
    1.20  		fi
    1.21  	fi
    1.22  
    1.23 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    1.24 -		if [ ! -f $1/etc/lighttpd/awstats.conf ]; then
    1.25 -			cp $1/usr/share/awstats/extras/awstats-lighttpd.conf \
    1.26 -				$1/etc/lighttpd/awstats.conf
    1.27 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.28 +		if [ ! -f "$1/etc/lighttpd/awstats.conf" ]; then
    1.29 +			cp "$1/usr/share/awstats/extras/awstats-lighttpd.conf" \
    1.30 +				"$1/etc/lighttpd/awstats.conf"
    1.31  		fi
    1.32  					# Start Web server if necessary.
    1.33  		if [ -f /var/run/lighttpd.pid ]; then