slitaz-dev-tools rev 29 1.0.3
Fix tazchroot default config
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Mar 05 19:52:15 2011 +0100 (2011-03-05) |
parents | 9d55ddb58359 |
children | a4bdff6199d5 |
files | tazchroot/tazchroot.conf |
line diff
1.1 --- a/tazchroot/tazchroot.conf Sat Mar 05 18:19:18 2011 +0000 1.2 +++ b/tazchroot/tazchroot.conf Sat Mar 05 19:52:15 2011 +0100 1.3 @@ -26,7 +26,7 @@ 1.4 # Here we use the default setup. 1.5 # The host system needs php installed to make it works. 1.6 # Uncomment to following line to use this option. 1.7 -#WEBSERVER="/var/www/vhosts/bb" 1.8 +WEBSERVER="/var/www/vhosts/bb" 1.9 1.10 # Default scripts path (theses scripts are added in the 1.11 # $chroot_dir/usr/bin and can be called with tazchroot script) 1.12 @@ -57,10 +57,11 @@ 1.13 tazpkg recharge 1.14 1.15 # Install needed packages. 1.16 + mkdir -p $chroot_dir 1.17 tazpkg get-install busybox --root="$chroot_dir" 1.18 tazpkg get-install tazchroot --root="$chroot_dir" 1.19 tazpkg get-install tazpkg --root="$chroot_dir" 1.20 - tazpkg get-install tazwok-experimental --root="$chroot_dir" 1.21 + tazpkg get-install tazwok --root="$chroot_dir" 1.22 tazpkg get-install libtaz --root="$chroot_dir" 1.23 1.24 rm -r $LOCALSTATE/undigest/tmp.$SLITAZ_VERSION.mirror 1.25 @@ -85,10 +86,16 @@ 1.26 echo "$SLITAZ_VERSION" > "$chroot_dir/etc/slitaz-release" 1.27 1.28 # Webserver setup. 1.29 - mkdir -p /usr/lib/slitaz 1.30 - [ -d /usr/lib/slitaz/web-bb ] || 1.31 - ln -s $chroot_dir/usr/lib/slitaz/web-bb /usr/lib/slitaz/web-bb 1.32 + if [ "$WEBSERVER" ]; then 1.33 + mkdir -p /usr/lib/slitaz 1.34 + [ -d /usr/share/slitaz/web-bb ] || [ -L /usr/share/slitaz/web-bb ] || 1.35 + ln -s $chroot_dir/usr/share/slitaz/web-bb /usr/share/slitaz/web-bb 1.36 1.37 + # Make tazwok act as php/lighttpd were installed into the sandbox. 1.38 + mkdir -p $chroot_dir$INSTALLED/php 1.39 + mkdir -p $chroot_dir$INSTALLED/lighttpd 1.40 + fi 1.41 + 1.42 # Mount system directories 1.43 mount -t proc proc $chroot_dir/proc 1.44 mount -t sysfs sysfs $chroot_dir/sys