tazwok diff tazwok @ rev 267
Improve webserver interface (thanks Bellard)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Feb 14 01:59:48 2011 +0100 (2011-02-14) |
parents | b982a489e94d |
children | 0df3d667a64e bf7d07bf23ef |
line diff
1.1 --- a/tazwok Sun Feb 13 23:38:35 2011 +0100 1.2 +++ b/tazwok Mon Feb 14 01:59:48 2011 +0100 1.3 @@ -3020,9 +3020,12 @@ 1.4 fi 1.5 mkdir -p $WEBSERVER 1.6 echo "${undigest:-$SLITAZ_VERSION}" >> $WEBSERVER/repositories.list 1.7 - for file in index.php log.php; do 1.8 + for file in index.php log.php download.php; do 1.9 [ -f "$WEBSERVER/$file" ] || ln -s /usr/share/slitaz/web-bb/$file $WEBSERVER 1.10 done 1.11 + for dir in $PACKAGES_REPOSITORY $INCOMING_REPOSITORY; do 1.12 + ln -s $dir $WEBSERVER/${undigest:-$SLITAZ_VERSION}-${dir##*/} 1.13 + done 1.14 source $LOCAL_REPOSITORY/tazchroot.conf 1.15 echo "<?php 1.16 1.17 @@ -3058,6 +3061,9 @@ 1.18 sed '/^WEBSERVER/d' -i $LOCAL_REPOSITORY/tazwok.conf 1.19 sed "/^${undigest:-$SLITAZ_VERSION}$/d" -i $WEBSERVER/repositories.list 1.20 rm $WEBSERVER/conf-${undigest:-$SLITAZ_VERSION}.php 1.21 + for dir in $PACKAGES_REPOSITORY $INCOMING_REPOSITORY; do 1.22 + rm $WEBSERVER/${undigest:-$SLITAZ_VERSION}-${dir##*/} 1.23 + done 1.24 if ! [ -s "$WEBSERVER/repositories.list" ]; then 1.25 echo "$WEBSERVER/repositories.list is empty; tazwok doesn't remove the server automatically in case you have important stuff in it. If it's not the case, you can remove it using: rm -r $WEBSERVER" 1.26 rm $WEBSERVER/conf.php