Update command enhancement and code improvements

This commit is contained in:
Jose
2020-11-24 08:38:49 -04:00
parent 52643c7e07
commit dd9e55bb9b
2 changed files with 53 additions and 22 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ jail_check() {
if [ ! "$(jls name | awk "/^${TARGET}$/")" ]; then
error_exit "[${TARGET}]: Not started. See 'bastille start ${TARGET}'."
else
if cat "${bastille_jailsdir}/${TARGET}/fstab" 2>/dev/null | grep -w "${TARGET}" | grep -qw "/.*/.bastille"; then
if grep -qw "${bastille_jailsdir}/${TARGET}/root/.bastille" "${bastille_jailsdir}/${TARGET}/fstab"; then
error_exit "${TARGET} is not a thick container."
fi
fi