aboutsummaryrefslogtreecommitdiffstats
path: root/main/djbdns/tinydns.initd
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2010-04-19 11:24:45 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2010-04-19 13:15:55 +0000
commitfbea38f9a65456f1e7e08630201c5e8caea72ed2 (patch)
tree4720e07f647ded89ec9b7c384c67376eeb119e97 /main/djbdns/tinydns.initd
parent236a35ddd6048ddff7f05c47777840973141369d (diff)
downloadaports-fbea38f9a65456f1e7e08630201c5e8caea72ed2.tar.bz2
aports-fbea38f9a65456f1e7e08630201c5e8caea72ed2.tar.xz
main/djbdns: periodic script to update zone hints
This also splits the djbdns to djbdns-common that contains the few utilities needed by the periodic script. Minor fix to init.d script included also. Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'main/djbdns/tinydns.initd')
-rwxr-xr-xmain/djbdns/tinydns.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/djbdns/tinydns.initd b/main/djbdns/tinydns.initd
index ab15ffe37a..8dfc539307 100755
--- a/main/djbdns/tinydns.initd
+++ b/main/djbdns/tinydns.initd
@@ -29,8 +29,8 @@ fi
# Main program
reload() {
local rc opwd="$opwd"
- UID=$( grep tinydns /etc/passwd | cut -f3 -d: )
- GID=$( grep tinydns /etc/group | cut -f3 -d: )
+ UID=$(id -u tinydns)
+ GID=$(id -g tinydns)
# Create the $ROOT directory if necessary
if [ ! -d "$ROOT" ]; then