diff options
Diffstat (limited to 'ezjail.sh')
| -rwxr-xr-x | ezjail.sh | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -102,8 +102,8 @@ attach_detach_pre () | |||
| 102 | # Fetch destination of soft link | 102 | # Fetch destination of soft link |
| 103 | ezjail_device=`stat -f "%Y" ${ezjail_rootdir}.device` | 103 | ezjail_device=`stat -f "%Y" ${ezjail_rootdir}.device` |
| 104 | 104 | ||
| 105 | mount -p -v | grep -E "^${ezjail_rootdir}.device.${ezjail_rootdir}" && echo "Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 | 105 | mount -p -v | grep -E "^${ezjail_rootdir}.device.${ezjail_rootdir}" && echo "Warning: Skipping jail. Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 |
| 106 | mount -p -v | grep -E "^${ezjail_device}.${ezjail_rootdir}" && echo "Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 | 106 | mount -p -v | grep -E "^${ezjail_device}.${ezjail_rootdir}" && echo "Warning: Skipping jail. Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 |
| 107 | 107 | ||
| 108 | # Remove stale device link | 108 | # Remove stale device link |
| 109 | rm -f ${ezjail_rootdir}.device | 109 | rm -f ${ezjail_rootdir}.device |
