wok-next diff ajaxterm/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 | d5f9f516b706 |
children | f0a0b5091b4a |
line diff
1.1 --- a/ajaxterm/receipt Fri Dec 04 16:32:53 2015 +0200 1.2 +++ b/ajaxterm/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -27,16 +27,16 @@ 1.4 1.5 post_install() 1.6 { 1.7 - grep ^RUN_DAEMONS $1/etc/rcS.conf | grep -q "ajaxterm" || sed -i \ 1.8 - 's/RUN_DAEMONS="/RUN_DAEMONS="ajaxterm /' $1/etc/rcS.conf 1.9 + grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "ajaxterm" || sed -i \ 1.10 + 's/RUN_DAEMONS="/RUN_DAEMONS="ajaxterm /' "$1/etc/rcS.conf" 1.11 # Configure lighttpd server 1.12 - if [ -f $1/usr/lib/lighttpd/mod_proxy.so ]; then 1.13 - grep -q mod_proxy $1/etc/lighttpd/lighttpd.conf || 1.14 - cat >> $1/etc/lighttpd/lighttpd.conf <<EOT 1.15 + if [ -f "$1/usr/lib/lighttpd/mod_proxy.so" ]; then 1.16 + grep -q mod_proxy "$1/etc/lighttpd/lighttpd.conf" || 1.17 + cat >> "$1/etc/lighttpd/lighttpd.conf" <<EOT 1.18 server.modules += ( "mod_proxy" ) 1.19 EOT 1.20 - grep -q ajaxterm $1/etc/lighttpd/lighttpd.conf || 1.21 - cat >> $1/etc/lighttpd/lighttpd.conf <<EOT 1.22 + grep -q ajaxterm "$1/etc/lighttpd/lighttpd.conf" || 1.23 + cat >> "$1/etc/lighttpd/lighttpd.conf" <<EOT 1.24 proxy.server = ( "/ajaxterm/" => 1.25 ( ( "host" => "127.0.0.1", "port" => 8022 ) ) 1.26 ) 1.27 @@ -48,9 +48,9 @@ 1.28 fi 1.29 fi 1.30 # Configure apache server 1.31 - if [ -f $1/etc/apache/httpd.conf ]; then 1.32 - if [ ! -f $1/etc/apache/conf.d/ajaxterm ]; then 1.33 - cat > $1/etc/apache/conf.d/ajaxterm <<EOT 1.34 + if [ -f "$1/etc/apache/httpd.conf" ]; then 1.35 + if [ ! -f "$1/etc/apache/conf.d/ajaxterm" ]; then 1.36 + cat > "$1/etc/apache/conf.d/ajaxterm" <<EOT 1.37 <IfModule mod_proxy.c> 1.38 ProxyRequests Off 1.39 <Proxy *> 1.40 @@ -70,8 +70,8 @@ 1.41 fi 1.42 fi 1.43 [ -z "$1" ] && /etc/init.d/ajaxterm start 1.44 - [ ! -f $1/usr/lib/lighttpd/mod_proxy.so -a \ 1.45 - ! -f $1/etc/apache/httpd.conf ] && 1.46 + [ ! -f "$1/usr/lib/lighttpd/mod_proxy.so" -a \ 1.47 + ! -f "$1/etc/apache/httpd.conf" ] && 1.48 [ -z "$quiet" ] && cat <<EOT 1.49 -------- 1.50 You should install either lighttpd