Call chgrp instead of chown when setting run directory group ownership.
authorSean Bright <sean@malleable.com>
Fri, 12 Jun 2009 02:20:19 +0000 (02:20 +0000)
committerSean Bright <sean@malleable.com>
Fri, 12 Jun 2009 02:20:19 +0000 (02:20 +0000)
(issue #13153)
Reported by: pabelanger

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200254 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/init.d/rc.debian.asterisk

index 86babe8..74cdeff 100755 (executable)
@@ -73,7 +73,7 @@ case "$1" in
        fi
        if [ $AST_GROUP ] ; then
                ASTARGS="$ASTARGS -G $AST_GROUP"
-               chown $AST_GROUP $ASTVARRUNDIR
+               chgrp $AST_GROUP $ASTVARRUNDIR
        fi
        # "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects):
        start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS