Fix bug preventing commands against stopped jails.
This commit is contained in:
@@ -154,7 +154,7 @@ clone|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|service|st
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
JAILS=$(jls name | awk "/^${TARGET}$/")
|
JAILS="${TARGET}"
|
||||||
|
|
||||||
# Ensure the target exists. -- cwells
|
# Ensure the target exists. -- cwells
|
||||||
if [ ! -d "${bastille_jailsdir}/${TARGET}" ]; then
|
if [ ! -d "${bastille_jailsdir}/${TARGET}" ]; then
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ CPSOURCE="${1}"
|
|||||||
CPDEST="${2}"
|
CPDEST="${2}"
|
||||||
|
|
||||||
for _jail in ${JAILS}; do
|
for _jail in ${JAILS}; do
|
||||||
bastille_jail_path="$(jls -j "${_jail}" path)"
|
|
||||||
info "[${_jail}]:"
|
info "[${_jail}]:"
|
||||||
|
bastille_jail_path="${bastille_jailsdir}/${_jail}/root"
|
||||||
cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"
|
cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"
|
||||||
RETURN="$?"
|
RETURN="$?"
|
||||||
if [ "${TARGET}" = "ALL" ]; then
|
if [ "${TARGET}" = "ALL" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user