More sanity checks before and while making the jail world
This commit is contained in:
parent
74fdbaca2c
commit
479523c139
10
ezjail-admin
10
ezjail-admin
@ -223,10 +223,20 @@ update)
|
|||||||
echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1;
|
echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1;
|
||||||
fi
|
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}
|
cd ${ezjail_sourcetree}
|
||||||
rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull}
|
rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull}
|
||||||
make ${updatejail_installaction} DESTDIR=${ezjail_jailfull}
|
make ${updatejail_installaction} DESTDIR=${ezjail_jailfull}
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "make ${updatejail_installaction} failed"; exit 1;
|
||||||
|
fi
|
||||||
make distribution DESTDIR=${ezjail_jailfull}
|
make distribution DESTDIR=${ezjail_jailfull}
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "make distribution failed"; exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
cd ${ezjail_jailfull}
|
cd ${ezjail_jailfull}
|
||||||
mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg
|
mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user