parallel: Remove pkg, destroy, migrate

This commit is contained in:
tschettervictor
2025-07-12 21:25:34 -06:00
parent 6f7a2fbcdb
commit 9249baa7de
4 changed files with 6 additions and 43 deletions

View File

@@ -334,17 +334,7 @@ case "${TARGET}" in
# Destroy targeted jail(s)
set_target "${TARGET}" "reverse"
for _jail in ${JAILS}; do
if [ "${AUTO_YES}" -eq 1 ]; then
(
destroy_jail "${_jail}"
) &
else
(
destroy_jail "${_jail}"
)
fi
bastille_running_jobs "${bastille_process_limit}"
destroy_jail "${_jail}"
done
wait
;;
esac

View File

@@ -348,8 +348,6 @@ validate_host_status "${USER}" "${HOST}" "${PORT}"
for _jail in ${JAILS}; do
(
# Validate jail state
if [ "${LIVE}" -eq 1 ]; then
if ! check_target_is_running "${_jail}"; then
@@ -371,9 +369,5 @@ for _jail in ${JAILS}; do
info "\nSuccessfully migrated '${_jail}' to '${HOST}'.\n"
) &
bastille_running_jobs "${bastille_process_limit}"
done
wait
echo

View File

@@ -140,29 +140,8 @@ pkg_run_command() {
}
for _jail in ${JAILS}; do
if [ "${AUTO_YES}" -eq 1 ]; then
(
pkg_run_command "$@"
) &
else
(
pkg_run_command "$@"
)
fi
bastille_running_jobs "${bastille_process_limit}"
pkg_run_command "$@"
done
wait
echo
bastille_return_exit_code