wok diff awstats/receipt @ rev 18988
Up: Not necessary depends. Use only busybox.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Thu Mar 17 05:25:08 2016 -0300 (2016-03-17) |
parents | 1067bb7f1e24 |
children | a6f7b6b890c2 |
line diff
1.1 --- a/awstats/receipt Wed Dec 16 15:49:50 2015 +0100 1.2 +++ b/awstats/receipt Thu Mar 17 05:25:08 2016 -0300 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