From 37c55bde5240f96d5c30a39307646b9b3fff54d5 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 26 Apr 2025 18:38:00 -0600 Subject: [PATCH] clone: Start both jails if AUTO=1 --- usr/local/share/bastille/clone.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/clone.sh b/usr/local/share/bastille/clone.sh index cb24c9fa..5168119f 100644 --- a/usr/local/share/bastille/clone.sh +++ b/usr/local/share/bastille/clone.sh @@ -363,13 +363,18 @@ clone_jail() { update_jailconf update_fstab "${TARGET}" "${NEWNAME}" - # Display the exist status + # Display exit status if [ "$?" -ne 0 ]; then error_exit "An error has occurred while attempting to clone '${TARGET}'." else info "Cloned '${TARGET}' to '${NEWNAME}' successfully." fi - if [ "${AUTO}" -eq 1 ] || [ "${LIVE}" -eq 1 ]; then + + # Start jails if AUTO=1 or LIVE=1 + if [ "${AUTO}" -eq 1 ]; then + bastille start "${TARGET}" + bastille start "${NEWNAME}" + elif [ "${LIVE}" -eq 1 ]; then bastille start "${NEWNAME}" fi }