summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin10
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