Browse files

MFM warden checkstatus.sh bugfix

  • Loading branch information...
1 parent a8c6b3a commit 6716587a0def962e62b3e1537d6f0e62b8dbb85f @kmoore134 kmoore134 committed Nov 2, 2013
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

0 comments on commit 6716587

Please sign in to comment.