mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 02:33:35 +01:00
deprecate parallel mode
This commit is contained in:
@@ -84,10 +84,7 @@ bastille_root_check
|
||||
|
||||
TARGET="${1}"
|
||||
shift 1
|
||||
|
||||
# Use mktemp to store exit codes
|
||||
export TMP_BASTILLE_EXIT_CODE="$(mktemp)"
|
||||
echo 0 > "${TMP_BASTILLE_EXIT_CODE}"
|
||||
ERRORS=0
|
||||
|
||||
set_target "${TARGET}"
|
||||
|
||||
@@ -110,9 +107,15 @@ for _jail in ${JAILS}; do
|
||||
else
|
||||
jexec -l -U root "${_jail}" "$@"
|
||||
fi
|
||||
|
||||
bastille_check_exit_code "${_jail}" "$?"
|
||||
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
ERRORS=$((ERRORS + 1))
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
bastille_return_exit_code
|
||||
if [ "${ERRORS}" -ne 0 ]; then
|
||||
error_exit "[ERROR]: Command failed on ${ERRORS} jails."
|
||||
fi
|
||||
|
||||
echo
|
||||
Reference in New Issue
Block a user