summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-09-12 11:17:02 +0000
committererdgeist <erdgeist@erdgeist.org>2006-09-12 11:17:02 +0000
commit0075b0454d21740d63e4eb270e81e1ef910f434e (patch)
treecf36709157dbb31df7d24d3e452a0c63409c912e
parentc935628f63309e49ba9874144a1e042d42462dbe (diff)
Check for root dir before running a jail. Thanks to Matthias Lederhofer.
-rwxr-xr-xezjail.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ezjail.sh b/ezjail.sh
index b51f515..1b78fd3 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -65,6 +65,9 @@ do_cmd()
65 eval ezjail_attachblocking=\"\$jail_${ezjail}_attachblocking\" 65 eval ezjail_attachblocking=\"\$jail_${ezjail}_attachblocking\"
66 eval ezjail_forceblocking=\"\$jail_${ezjail}_forceblocking\" 66 eval ezjail_forceblocking=\"\$jail_${ezjail}_forceblocking\"
67 67
68 # Do we still have a root to run in?
69 [ ! -d "${ezjail_rootdir}" ] && echo " Warning: root directory ${ezjail_rootdir} of ${ezjail} does not exist." && continue
70
68 [ "${ezjail_attachblocking}" = "YES" -o "${ezjail_forceblocking}" = "YES" ] && ezjail_blocking="YES" || unset ezjail_blocking 71 [ "${ezjail_attachblocking}" = "YES" -o "${ezjail_forceblocking}" = "YES" ] && ezjail_blocking="YES" || unset ezjail_blocking
69 72
70 # Cannot auto mount blocking jails without interrupting boot process 73 # Cannot auto mount blocking jails without interrupting boot process