Changeset 6716587


Ignore:
Timestamp:
11/02/13 14:13:10 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
9.2-release
Children:
287fef9
Parents:
a8c6b3a
Message:

MFM warden checkstatus.sh bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/checkstatus.sh

    r1620346 r6716587  
    3737# Check if anything is still mounted in this jail 
    3838hasmount="0" 
    39 for mountpoint in $(mount | grep -e '${JAILDIR}/' | cut -d" " -f3); do 
     39for mountpoint in $(mount | grep -e "${JAILDIR}/" | cut -d" " -f3); do 
    4040  hasmount="1" 
    4141done 
    4242 
    4343# Check if the jail is active 
    44 jls | grep ${JAILNAME}$ >/dev/null 2>/dev/null 
     44jls | grep "${JAILDIR}$" >/dev/null 2>/dev/null 
    4545if [ "$?" = "0" -o "$hasmount" = "1" ]; then 
    4646  exit 0 
Note: See TracChangeset for help on using the changeset viewer.