1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

- Check for some mandatory variables.

Approved by:	cperciva (mentor)
MFC after:	1 week
This commit is contained in:
Florent Thoumie 2006-05-07 23:15:39 +00:00
parent 11991ab418
commit 46d5426b1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158352

View File

@ -86,6 +86,17 @@ init_variables()
debug "$_j exec start: $jail_exec_start"
debug "$_j exec stop: $jail_exec_stop"
debug "$_j flags: $jail_flags"
if [ -z "${jail_hostname}" ]; then
err 3 "$name: No hostname has been defined for ${_j}"
fi
if [ -z "${jail_rootdir}" ]; then
err 3 "$name: No root directory has been defined for ${_j}"
fi
if [ -z "${jail_ip}" ]; then
err 3 "$name: No IP address has been defined for ${_j}"
fi
}
# set_sysctl rc_knob mib msg