mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
Merge pull request #887 from BastilleBSD/jail-import-iocage-ezjail
import: Import jails using new interface format (iocage,ezjail)
This commit is contained in:
@@ -554,10 +554,12 @@ create_jail() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Exit if jail was not started, which means something is wrong.
|
||||
if ! check_target_is_running "${NAME}"; then
|
||||
bastille destroy "${NAME}"
|
||||
error_exit "[${NAME}]: Failed to create jail..."
|
||||
# Exit if jail was not started, except for empty jails
|
||||
if [ -z "${EMPTY_JAIL}" ]; then
|
||||
if ! check_target_is_running "${NAME}"; then
|
||||
bastille destroy "${NAME}"
|
||||
error_exit "[${NAME}]: Failed to create jail..."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${VNET_JAIL}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user