diff options
Diffstat (limited to 'sysutils/munin-node/files/munin-node.sh')
-rw-r--r-- | sysutils/munin-node/files/munin-node.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/munin-node/files/munin-node.sh b/sysutils/munin-node/files/munin-node.sh index a95e7334da4..4aab73ce298 100644 --- a/sysutils/munin-node/files/munin-node.sh +++ b/sysutils/munin-node/files/munin-node.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: munin-node.sh,v 1.1.1.1 2006/06/04 20:53:57 he Exp $ +# $NetBSD: munin-node.sh,v 1.2 2006/06/27 13:05:49 he Exp $ # # PROVIDE: munin-node # REQUIRE: DAEMON @@ -24,7 +24,11 @@ required_files=@PKG_SYSCONFDIR@/munin/munin-node.conf if [ ! -d @STATEDIR@ ]; then mkdir @STATEDIR@ - chown munin:munin /var/run/munin + chown @MUNIN_USER@:@MUNIN_GROUP@ @STATEDIR@ +fi +if [ ! -d @MUNIN_RUN@ ]; then + mkdir @MUNIN_RUN@ + chown @MUNIN_USER@:@MUNIN_GROUP@ @MUNIN_RUN@ fi if [ -f /etc/rc.subr ]; then |