From cca2de3610f9f80b961b62d148db17689823dee9 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 17 May 2025 10:18:52 -0600 Subject: [PATCH] create: Use -y on destroy --- usr/local/share/bastille/create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index ef8859a4..ec71ab96 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -520,7 +520,7 @@ create_jail() { cp -a "${bastille_releasesdir}/${RELEASE}/" "${bastille_jail_path}" if [ "$?" -ne 0 ]; then ## notify and clean stale files/directories - bastille destroy -af "${NAME}" + bastille destroy -afy "${NAME}" error_exit "[ERROR]: Failed to copy release files. Please retry create!" fi fi @@ -600,7 +600,7 @@ 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 -af "${NAME}" + bastille destroy -afy "${NAME}" error_exit "[ERROR]: Failed to create jail: ${NAME}" fi fi