slitaz-dev-tools diff mirror-tools/rootfs/usr/bin/mkpkgiso @ rev 130
mkpkgiso: website is in php now
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 04 16:44:28 2011 +0200 (2011-09-04) |
parents | 5de4cfa5296c |
children | b728f44da66f |
line diff
1.1 --- a/mirror-tools/rootfs/usr/bin/mkpkgiso Sun Mar 06 16:43:54 2011 +0000 1.2 +++ b/mirror-tools/rootfs/usr/bin/mkpkgiso Sun Sep 04 16:44:28 2011 +0200 1.3 @@ -252,7 +252,15 @@ 1.4 if get_from_hg website "web site"; then 1.5 echo "$SORT_DIR/website -6000" >> $SORT_FILE 1.6 cat >>$TEMP_DIR/install.sh<<EOF 1.7 -echo "=> slitaz web site installed in file://\$DIR/website/index.html" 1.8 +if [ -s \$DIR/website/index.html ]; then 1.9 + echo "=> slitaz web site installed in file://\$DIR/website/index.html" 1.10 +elif [ -s \$DIR/website/index.php ]; then 1.11 + yes y | tazpkg get-install php 1.12 + ln -s /\$DIR/website /var/www 1.13 + echo "=> slitaz web site installed in http://127.0.0.1/website/index.php" 1.14 +else 1.15 + echo "=> slitaz web site is not installed. How can I do it ?" 1.16 +fi 1.17 EOF 1.18 fi;; 1.19 --sources)