lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 1fe4160fc29ed7d4a95fcd47452ee1c2223d5f1b
parent 1b33cc82c39b902d05395de2437a4d72c869a083
Author: Noah Meyerhans <frodo@morgul.net>
Date:   Fri, 12 Dec 2014 14:32:14 -0800

net/bind: add the bind user/group

Signed-off-by: Noah Meyerhans <frodo@morgul.net>

Diffstat:
Mnet/bind/Makefile | 3++-
Mnet/bind/files/named.init | 2++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/bind/Makefile b/net/bind/Makefile @@ -10,7 +10,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bind PKG_VERSION:=9.9.6-P1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 +USERID:=bind=57:bind=57 PKG_MAINTAINER := Noah Meyerhans <frodo@morgul.net> PKG_LICENSE := BSD-3-Clause diff --git a/net/bind/files/named.init b/net/bind/files/named.init @@ -26,6 +26,8 @@ fix_perms() { } start_service() { + user_exists bind 57 || user_add bind 57 + group_exists bind 57 || group_add bind 57 fix_perms procd_open_instance procd_set_param command /usr/sbin/named -u bind -f -c $config_file