From 8725e9ccacb84865a830cabec0e0f42a8b7ffdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20B=C3=83cker?= Date: Wed, 30 Sep 2020 09:05:44 +0000 Subject: [PATCH] Prevent acting on non-bastille jails when using target ALL --- usr/local/bin/bastille | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/bastille b/usr/local/bin/bastille index f2bafe35..eb3da3ee 100755 --- a/usr/local/bin/bastille +++ b/usr/local/bin/bastille @@ -145,7 +145,7 @@ clone|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|service|st shift if [ "${TARGET}" = 'ALL' ]; then - JAILS=$(jls name) + JAILS=$(ls ${bastille_jailsdir}) else JAILS=$(jls name | awk "/^${TARGET}$/")