wok-6.x rev 2121
mkpkgiso: may install lighttpd in install.sh
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 31 14:58:52 2009 +0000 (2009-01-31) |
parents | 2b197a75fa24 |
children | 78b88b5a0d96 |
files | mirror-tools/stuff/usr/bin/mkpkgiso |
line diff
1.1 --- a/mirror-tools/stuff/usr/bin/mkpkgiso Sat Jan 31 14:45:11 2009 +0000 1.2 +++ b/mirror-tools/stuff/usr/bin/mkpkgiso Sat Jan 31 14:58:52 2009 +0000 1.3 @@ -76,6 +76,7 @@ 1.4 1.5 DIR=\$(cd \$(dirname \$0); pwd) 1.6 1.7 +echo "Install packages..." 1.8 [ -d /var/cache/tazpkg ] || mkdir -p /var/cache/tazpkg 1.9 ls -d \$DIR/packages/* > /var/lib/tazpkg/mirror 1.10 ln -fs \$DIR/packages/*/*.tazpkg /var/cache/tazpkg/ 1.11 @@ -122,8 +123,10 @@ 1.12 mkdir $TEMP_DIR/website 1.13 cp -a /slitaz/home/slitaz/hg/website/* $TEMP_DIR/website 1.14 cat >>$TEMP_DIR/install.sh<<EOF 1.15 +echo "Install http://127.0.0.1/website ..." 1.16 [ -d /var/www ] || mkdir -p /var/www 1.17 ln -s \$DIR/website /var/www 1.18 +tazpkg list | grep -q ^lighttpd || yes y | tazpkg get-install lighttpd 1.19 EOF 1.20 status 1.21 echo "$(du -hs $TEMP_DIR/website | awk '{ print $1 }') used by web site."