summaryrefslogtreecommitdiff
path: root/dns/bind910/files/named.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/bind910/files/named.in')
-rw-r--r--dns/bind910/files/named.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/dns/bind910/files/named.in b/dns/bind910/files/named.in
index cd809f5173c9..5d5f92b45f84 100644
--- a/dns/bind910/files/named.in
+++ b/dns/bind910/files/named.in
@@ -232,10 +232,10 @@ named_stop()
named_poststop()
{
if [ -n "${named_chrootdir}" -a -c ${named_chrootdir}/dev/null ]; then
- # unmount OpenSSL engines, if they were not mounted but only
- # copied, do nothing.
- if [ `${SYSCTL_N} security.jail.jailed` -eq 0 -o `${SYSCTL_N} security.jail.mount_allowed` -eq 1 ]; then
- umount ${named_chrootdir}${_openssl_engines}
+ # if using OpenSSL from ports, unmount OpenSSL engines, if they
+ # were not mounted but only copied, do nothing.
+ if [ -d ${_openssl_engines} -a \( `${SYSCTL_N} security.jail.jailed` -eq 0 -o `${SYSCTL_N} security.jail.mount_allowed` -eq 1 \) ]; then
+ umount ${named_chrootdir}${_openssl_engines}
fi
# unmount /dev
if [ `${SYSCTL_N} security.jail.jailed` -eq 0 ]; then