Skip to content

Commit

Permalink
bind*: Fix a couple of issues in the SMF method.
Browse files Browse the repository at this point in the history
Fix a typo in the configuration_file arguments, #189.
Ensure the /var/run/named directory has the correct permissions.
  • Loading branch information
jperkin authored and Jonathan Perkin committed Jun 20, 2019
1 parent 07bf986 commit 5a563f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net/bind911/files/smf/named.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ get_config ()
;;
'configuration_file')
cmdopts="${cmdopts} -c ${value}"
checkopts="${checkopts} -t ${value}"
checkopts="${checkopts} ${value}"
configuration_file=${value};
;;
'server')
Expand Down Expand Up @@ -202,7 +202,7 @@ case "$method" in
rndc_key_file=${chroot_dir}${rndc_key_file}
rndc_cmd_opts="${rndc_cmd_opts} -t ${chroot_dir}"
else
mkdir -p @VARBASE@/run/named
mkdir -p -m 0770 @VARBASE@/run/named
chown ${cmduser}:${cmduser} @VARBASE@/run/named
fi

Expand Down
4 changes: 2 additions & 2 deletions net/bind912/files/smf/named.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ get_config ()
;;
'configuration_file')
cmdopts="${cmdopts} -c ${value}"
checkopts="${checkopts} -t ${value}"
checkopts="${checkopts} ${value}"
configuration_file=${value};
;;
'server')
Expand Down Expand Up @@ -202,7 +202,7 @@ case "$method" in
rndc_key_file=${chroot_dir}${rndc_key_file}
rndc_cmd_opts="${rndc_cmd_opts} -t ${chroot_dir}"
else
mkdir -p @VARBASE@/run/named
mkdir -p -m 0770 @VARBASE@/run/named
chown ${cmduser}:${cmduser} @VARBASE@/run/named
fi

Expand Down

0 comments on commit 5a563f1

Please sign in to comment.