mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
import: Prepare for migrate command
This commit is contained in:
@@ -746,9 +746,11 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if a running jail matches name or already exist
|
# Check if a running jail matches name or already exist
|
||||||
check_target_exists || error_exit "[ERROR]: Jail: ${TARGET_TRIM} already exists."
|
if check_target_exists "${TARGET}"; then
|
||||||
|
error_exit "[ERROR]: Jail: ${TARGET} already exists."
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${TARGET}" ]; then
|
if [ -n "${TARGET}" ]; then
|
||||||
info "\nAttempting to import jail: ${TARGET}..."
|
info "\nAttempting to import jail: ${TARGET}..."
|
||||||
jail_import
|
jail_import
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user