mirror of
https://github.com/hackacad/bastille.git
synced 2026-03-28 19:54:58 +01:00
VNET create.sh error message
VNET creating will fail if gateway interface is missing
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
usage() {
|
||||
error_exit "Usage: bastille create [option] name release ip [interface]"
|
||||
}
|
||||
usage_vnet() {
|
||||
error_exit "Usage: bastille create -V name release ip interface"
|
||||
}
|
||||
|
||||
running_jail() {
|
||||
if [ -n "$(jls name | awk "/^${NAME}$/")" ]; then
|
||||
@@ -444,6 +447,10 @@ if [ -n "${EMPTY_JAIL}" ]; then
|
||||
if [ $# -ne 1 ]; then
|
||||
usage
|
||||
fi
|
||||
elif [ -n "${VNET_JAIL}" ]; then
|
||||
if [ $# -ne 4 ]; then
|
||||
usage_vnet
|
||||
fi
|
||||
else
|
||||
if [ $# -gt 4 ] || [ $# -lt 3 ]; then
|
||||
usage
|
||||
|
||||
Reference in New Issue
Block a user