summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-06-14 21:06:37 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-15 13:36:41 +0200
commite77e22d21e8833ec167951e2a5e8f6ca5c9e7346 (patch)
tree1ccd9740d1eb7b7d016ea4de9712763f762ee5ac /redhat
parentquagga: Modify code to build properly in tools and cumulus (diff)
downloadfrr-e77e22d21e8833ec167951e2a5e8f6ca5c9e7346.tar.xz
frr-e77e22d21e8833ec167951e2a5e8f6ca5c9e7346.zip
redhat: Fix runtime dependency and quaggavty group
1) Fix runtime to depend on initscripts 2) Fix quagga user to get quaggavty group Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'redhat')
-rw-r--r--redhat/quagga.spec.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/redhat/quagga.spec.in b/redhat/quagga.spec.in
index 253fd7c0a..cadc1fb8c 100644
--- a/redhat/quagga.spec.in
+++ b/redhat/quagga.spec.in
@@ -99,7 +99,7 @@ Requires(preun): /sbin/install-info
Requires(post): /sbin/install-info
BuildRequires: texi2html texinfo autoconf patch libcap-devel groff
BuildRequires: readline readline-devel ncurses ncurses-devel
-Requires: ncurses
+Requires: ncurses initscripts
%if %{with_pam}
BuildRequires: pam-devel
Requires: pam
@@ -284,7 +284,11 @@ if getent passwd %quagga_user >/dev/null ; then : ; else \
-M -r -s /sbin/nologin -c "Quagga routing suite" \
-d %_localstatedir %quagga_user 2> /dev/null || : ; \
fi
+%if 0%{?vty_group:1}
+/usr/sbin/usermod -a -G %vty_group %quagga_user
%endif
+%endif
+
%post
# zebra_spec_add_service <service name> <port/proto> <comment>