mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
bastille: Bugfix for listing parallel jails in reverse
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
||||||
|
|
||||||
BASTILLE_VERSION="0.14.20250420"
|
BASTILLE_VERSION=aec0630
|
||||||
|
|
||||||
## check for config existence
|
## check for config existence
|
||||||
bastille_conf_check() {
|
bastille_conf_check() {
|
||||||
@@ -253,14 +253,28 @@ case "${CMD}" in
|
|||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if ! set_target "${1}" >/dev/null 2>&1; then
|
case "${CMD}" in
|
||||||
OPTIONS="${OPTIONS} ${1}"
|
stop|destroy)
|
||||||
shift 1
|
if ! set_target "${1}" "reverse" >/dev/null 2>&1; then
|
||||||
else
|
OPTIONS="${OPTIONS} ${1}"
|
||||||
XARGS_JAILS="${JAILS}"
|
shift 1
|
||||||
shift 1
|
else
|
||||||
break
|
XARGS_JAILS="${JAILS}"
|
||||||
fi
|
shift 1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if ! set_target "${1}" >/dev/null 2>&1; then
|
||||||
|
OPTIONS="${OPTIONS} ${1}"
|
||||||
|
shift 1
|
||||||
|
else
|
||||||
|
XARGS_JAILS="${JAILS}"
|
||||||
|
shift 1
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
@@ -286,7 +300,5 @@ if [ -f "${SCRIPTPATH}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
error_exit "${SCRIPTPATH} not found."
|
||||||
error_exit "${SCRIPTPATH} not found."
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user