From fbea38f9a65456f1e7e08630201c5e8caea72ed2 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 19 Apr 2010 11:24:45 +0300 Subject: 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 Signed-off-by: Natanael Copa --- main/djbdns/dnscache.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/djbdns/dnscache.initd') diff --git a/main/djbdns/dnscache.initd b/main/djbdns/dnscache.initd index 3e88e3a426..37d9d9ba73 100755 --- a/main/djbdns/dnscache.initd +++ b/main/djbdns/dnscache.initd @@ -17,8 +17,8 @@ depend() { # Main program start() { - UID=$( grep dnscache /etc/passwd | cut -f3 -d: ) - GID=$( grep dnscache /etc/group | cut -f3 -d: ) + UID=$(id -u dnscache) + GID=$(id -g dnscache) ebegin "Starting dnscache" if [ -z "$UID" ] || [ -z "$GID" ]; then -- cgit v1.2.3