diff --git a/usr/local/share/bastille/umount.sh b/usr/local/share/bastille/umount.sh index 5ffbc3a0..89017dfd 100644 --- a/usr/local/share/bastille/umount.sh +++ b/usr/local/share/bastille/umount.sh @@ -90,8 +90,8 @@ for _jail in ${JAILS}; do info "[${_jail}]:" - check_target_is_running "${TARGET}" || if [ "${AUTO}" -eq 1 ]; then - bastille start "${TARGET}" + check_target_is_running "${_jail}" || if [ "${AUTO}" -eq 1 ]; then + bastille start "${_jail}" else error_notify "Jail is not running." error_exit "Use [-a|--auto] to auto-start the jail."