wok diff lighttpd/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 16d87ac5f8c3 |
children | 6fab3264ba87 |
line diff
1.1 --- a/lighttpd/receipt Wed Dec 16 23:00:12 2015 +0100 1.2 +++ b/lighttpd/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -83,20 +83,20 @@ 1.4 echo "Processing pre-install commands..." 1.5 [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop 1.6 # Backup config file. 1.7 - if [ -d $1/etc/lighttpd ]; then 1.8 - cp -a $1/etc/lighttpd $1/etc/lighttpd.bak 1.9 + if [ -d "$1/etc/lighttpd" ]; then 1.10 + cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak" 1.11 fi 1.12 } 1.13 post_install() 1.14 { 1.15 echo "Processing post-install commands..." 1.16 # Restore original config. 1.17 - if [ -d $1/etc/lighttpd.bak ]; then 1.18 - rm -rf $1/etc/lighttpd 1.19 - mv $1/etc/lighttpd.bak $1/etc/lighttpd 1.20 + if [ -d "$1/etc/lighttpd.bak" ]; then 1.21 + rm -rf "$1/etc/lighttpd" 1.22 + mv "$1/etc/lighttpd.bak" "$1/etc/lighttpd" 1.23 fi 1.24 # Just in case. 1.25 - chown www.www $1/var/log/$PACKAGE 1.26 + chown www.www "$1/var/log/$PACKAGE" 1.27 [ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 || 1.28 /etc/init.d/$PACKAGE start 1.29 }