From 8b12d34fab74b08da1b3acacb75e118f0b6fe2da Mon Sep 17 00:00:00 2001 From: jperkin Date: Fri, 1 Mar 2019 21:46:50 +0000 Subject: bind*: Ensure named directory is created on SunOS. --- net/bind911/files/smf/named.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/bind911') diff --git a/net/bind911/files/smf/named.sh b/net/bind911/files/smf/named.sh index 8bf5724eb13..cd5fa25e5f2 100644 --- a/net/bind911/files/smf/named.sh +++ b/net/bind911/files/smf/named.sh @@ -201,6 +201,9 @@ case "$method" in rndc_config_file=${chroot_dir}${rndc_config_file} rndc_key_file=${chroot_dir}${rndc_key_file} rndc_cmd_opts="${rndc_cmd_opts} -t ${chroot_dir}" + else + mkdir -p @VARBASE@/run/named + chown ${cmduser}:${cmduser} @VARBASE@/run/named fi # Check if the rndc config file exists. -- cgit v1.2.3