=================================================================== RCS file: /cvs/openbsd/fill_chroot/fill_chroot,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- openbsd/fill_chroot/fill_chroot 2006/07/18 03:47:35 1.5 +++ openbsd/fill_chroot/fill_chroot 2006/07/20 01:42:59 1.6 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: fill_chroot,v 1.4 2006/01/26 17:11:09 andrew Exp $ +# $RedRiver: fill_chroot,v 1.5 2006/07/18 02:47:35 andrew Exp $ CHROOT=${CHROOT:=/home/andrew/www} export CHROOT @@ -7,9 +7,11 @@ perl_to_chroot mkdir -p ${CHROOT}/usr/local/lib -cd $CHROOT -if [ -e bin/mini_sendmail ]; then - ln -sf bin/mini_sendmail usr/sbin/sendmail +if [ -e ${CHROOT}/bin/mini_sendmail ]; then + mkdir -p ${CHROOT}/usr/sbin + cd ${CHROOT}/usr/sbin + ln -sf ../../bin/mini_sendmail sendmail + cd ${OLDPWD} else echo mini_sendmail not installed! Please install it and link it to echo " ${CHROOT}/usr/sbin/sendmail"