redhat: Add quagga user to quaggavt vty group by default, bug #937
* See bugzilla #937
diff --git a/redhat/quagga.spec.in b/redhat/quagga.spec.in
index a1263d1..fa50aaa 100644
--- a/redhat/quagga.spec.in
+++ b/redhat/quagga.spec.in
@@ -310,7 +310,7 @@
/usr/sbin/groupadd -g %quagga_gid %quagga_user > /dev/null || : ; \
fi
if getent passwd %quagga_user >/dev/null ; then : ; else \
- /usr/sbin/useradd -u %quagga_uid -g %quagga_gid \
+ /usr/sbin/useradd -u %quagga_uid -g %quagga_gid -G %vty_group \
-M -r -s /sbin/nologin -c "Quagga routing suite" \
-d %_localstatedir %quagga_user 2> /dev/null || : ; \
fi