wok-current diff php/receipt @ rev 1137
Fix post_install for subdir install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 24 12:27:06 2008 +0000 (2008-07-24) |
parents | eb4e6a1af180 |
children | a6ba323029ac |
line diff
1.1 --- a/php/receipt Thu Mar 13 10:38:19 2008 +0000 1.2 +++ b/php/receipt Thu Jul 24 12:27:06 2008 +0000 1.3 @@ -59,8 +59,6 @@ 1.4 } 1.5 post_install() 1.6 { 1.7 - local root 1.8 - root=$1 1.9 # Restore original php.ini 1.10 if [ -f "$1/etc/php.ini.bak" ]; then 1.11 echo -n "Restoring php.ini backup..." 1.12 @@ -68,7 +66,7 @@ 1.13 status 1.14 fi 1.15 # Start Web server. 1.16 - if [ ! -f "/var/run/lighttpd.pid" ]; then 1.17 + if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then 1.18 /etc/init.d/lighttpd start 1.19 fi 1.20 }