wok-current diff smbwebclient/receipt @ rev 21056
updated iperf (2.0.9 -> 2.0.13)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 13 14:59:39 2019 +0100 (2019-03-13) |
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 Mar 13 14:59:39 2019 +0100 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>