Permalink
Browse files

Fix detection of some active jails

Thanks Adam!
  • Loading branch information...
1 parent 25ab455 commit 4994f5cd3e7877b2c5c8d9a620dc7bd544430ee3 @kmoore134 kmoore134 committed Nov 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 4994f5c

Please sign in to comment.