diff --git a/usr/local/share/bastille/destroy.sh b/usr/local/share/bastille/destroy.sh index f3f0e3ec..0185e3d2 100644 --- a/usr/local/share/bastille/destroy.sh +++ b/usr/local/share/bastille/destroy.sh @@ -55,7 +55,7 @@ destroy_jail() { if [ -d "${bastille_jail_base}" ]; then ## make sure no filesystem is currently mounted in the jail directory - mount_points=$(mount | cut -d ' ' -f 3 | grep "${bastille_jail_base}") + mount_points=$(mount | cut -d ' ' -f 3 | grep "${bastille_jail_base}"/root/) if [ $? -eq 0 ]; then error_notify "Failed to destroy jail: ${TARGET}" error_exit "Jail has mounted filesystems:\n$mount_points"