More sanity checks before and while making the jail world

This commit is contained in:
erdgeist 2005-11-09 23:38:56 +00:00
parent 74fdbaca2c
commit 479523c139

View File

@ -223,10 +223,20 @@ update)
echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1;
fi
if [ ! -f ${ezjail_sourcetree}/Makefile ]; then
echo "Your source tree in $ezjail_sourcetree seems to be incomplete (Makefile missing)."; exit 1;
fi
cd ${ezjail_sourcetree}
rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull}
make ${updatejail_installaction} DESTDIR=${ezjail_jailfull}
if [ $? != 0 ]; then
echo "make ${updatejail_installaction} failed"; exit 1;
fi
make distribution DESTDIR=${ezjail_jailfull}
if [ $? != 0 ]; then
echo "make distribution failed"; exit 1;
fi
cd ${ezjail_jailfull}
mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg