diff options
author | erdgeist <erdgeist@erdgeist.org> | 2005-11-09 23:38:56 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2005-11-09 23:38:56 +0000 |
commit | 479523c139b62c1b2f84e334d3e2aa85cf15da24 (patch) | |
tree | 0e7ecc90c903428a2acd2ebf94d5ea20467376a8 /ezjail-admin | |
parent | 74fdbaca2c639027cfbbc2e04cce4e62594dba1f (diff) |
More sanity checks before and while making the jail world
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin index 4acb4c2..15c2a70 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -223,10 +223,20 @@ update) | |||
223 | echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1; | 223 | echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1; |
224 | fi | 224 | fi |
225 | 225 | ||
226 | if [ ! -f ${ezjail_sourcetree}/Makefile ]; then | ||
227 | echo "Your source tree in $ezjail_sourcetree seems to be incomplete (Makefile missing)."; exit 1; | ||
228 | fi | ||
229 | |||
226 | cd ${ezjail_sourcetree} | 230 | cd ${ezjail_sourcetree} |
227 | rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull} | 231 | rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull} |
228 | make ${updatejail_installaction} DESTDIR=${ezjail_jailfull} | 232 | make ${updatejail_installaction} DESTDIR=${ezjail_jailfull} |
233 | if [ $? != 0 ]; then | ||
234 | echo "make ${updatejail_installaction} failed"; exit 1; | ||
235 | fi | ||
229 | make distribution DESTDIR=${ezjail_jailfull} | 236 | make distribution DESTDIR=${ezjail_jailfull} |
237 | if [ $? != 0 ]; then | ||
238 | echo "make distribution failed"; exit 1; | ||
239 | fi | ||
230 | 240 | ||
231 | cd ${ezjail_jailfull} | 241 | cd ${ezjail_jailfull} |
232 | mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg | 242 | mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg |