mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
create: Do not check running if empty jail
This commit is contained in:
@@ -554,10 +554,12 @@ create_jail() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Exit if jail was not started, which means something is wrong.
|
# Exit if jail was not started, except for empty jails
|
||||||
if ! check_target_is_running "${NAME}"; then
|
if [ -z "${EMPTY_JAIL}" ]; then
|
||||||
bastille destroy "${NAME}"
|
if ! check_target_is_running "${NAME}"; then
|
||||||
error_exit "[${NAME}]: Failed to create jail..."
|
bastille destroy "${NAME}"
|
||||||
|
error_exit "[${NAME}]: Failed to create jail..."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${VNET_JAIL}" ]; then
|
if [ -n "${VNET_JAIL}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user