Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MFM warden checkstatus.sh bugfix

  • Loading branch information...
commit 6716587a0def962e62b3e1537d6f0e62b8dbb85f 1 parent a8c6b3a
@kmoore134 kmoore134 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-sh/warden/scripts/backend/checkstatus.sh
View
4 src-sh/warden/scripts/backend/checkstatus.sh
@@ -36,12 +36,12 @@ fi
# Check if anything is still mounted in this jail
hasmount="0"
-for mountpoint in $(mount | grep -e '${JAILDIR}/' | cut -d" " -f3); do
+for mountpoint in $(mount | grep -e "${JAILDIR}/" | cut -d" " -f3); do
hasmount="1"
done
# Check if the jail is active
-jls | grep ${JAILNAME}$ >/dev/null 2>/dev/null
+jls | grep "${JAILDIR}$" >/dev/null 2>/dev/null
if [ "$?" = "0" -o "$hasmount" = "1" ]; then
exit 0
else
Please sign in to comment.
Something went wrong with that request. Please try again.