wok diff smbwebclient/receipt @ rev 20475
Typos in receipt variable names
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 17 10:43:04 2018 +0200 (2018-10-17) |
parents | d51b2411e55e |
children | 70a88c677f40 |
line diff
1.1 --- a/smbwebclient/receipt Sat Apr 05 10:12:34 2014 +0000 1.2 +++ b/smbwebclient/receipt Wed Oct 17 10:43:04 2018 +0200 1.3 @@ -30,15 +30,15 @@ 1.4 1.5 post_install() 1.6 { 1.7 - if [ -f $1/etc/locale.conf ]; then 1.8 - lang=$(. /etc/locale.conf; echo ${LANG%_*}) 1.9 + if [ -f "$1/etc/locale.conf" ]; then 1.10 + lang=$(. "$1/etc/locale.conf"; echo ${LANG%_*}) 1.11 sed -i "s/DefaultLanguage = 'us'/DefaultLanguage = '$lang'/" \ 1.12 - $1/etc/samba/smbwebclient.conf 1.13 + "$1/etc/samba/smbwebclient.conf" 1.14 fi 1.15 1.16 - if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.17 - if ! grep -q /usr/share/samba/ $1/etc/lighttpd/lighttpd.conf; then 1.18 - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/smbwebclient/" => "/usr/share/samba/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.19 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.20 + if ! grep -q /usr/share/samba/ "$1/etc/lighttpd/lighttpd.conf"; then 1.21 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/smbwebclient/" => "/usr/share/samba/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.22 if [ -z "$1" ]; then 1.23 # Start Web server. 1.24 /etc/init.d/lighttpd stop 1.25 @@ -47,9 +47,9 @@ 1.26 fi 1.27 fi 1.28 # Configure apache server 1.29 - if [ -f $1/etc/apache/httpd.conf ]; then 1.30 - if [ ! -f $1/etc/apache/conf.d/smbwebclient ]; then 1.31 - cat > $1/etc/apache/conf.d/smbwebclient <<EOT 1.32 + if [ -f "$1/etc/apache/httpd.conf" ]; then 1.33 + if [ ! -f "$1/etc/apache/conf.d/smbwebclient" ]; then 1.34 + cat > "$1/etc/apache/conf.d/smbwebclient" <<EOT 1.35 <IfModule mod_alias.c> 1.36 Alias /smbwebclient /usr/share/samba 1.37 </IfModule>