From 98a2aecb7ba26b5965d9f4f17dfe53fe886f0c35 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 20 Jun 2018 14:49:08 +0200 Subject: [PATCH] redhat: replace hardcoded directory Signed-off-by: Ruben Kerkhof --- redhat/frr.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 378e5fd963..d1900a8d67 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -361,7 +361,7 @@ install -m644 %{zeb_rh_src}/frr.pam \ %{buildroot}%{_sysconfdir}/pam.d/frr install -m644 %{zeb_rh_src}/frr.logrotate \ %{buildroot}%{_sysconfdir}/logrotate.d/frr -install -d -m750 %{buildroot}/var/run/frr +install -d -m750 %{buildroot}%{rundir} %pre # add vty_group @@ -538,11 +538,11 @@ rm -rf %{buildroot} %if 0%{?frr_user:1} %dir %attr(751,%frr_user,%frr_user) %{configdir} %dir %attr(750,%frr_user,%frr_user) /var/log/frr -%dir %attr(751,%frr_user,%frr_user) /var/run/frr +%dir %attr(751,%frr_user,%frr_user) %{rundir} %else %dir %attr(750,root,root) %{configdir} %dir %attr(750,root,root) /var/log/frr -%dir %attr(750,root,root) /var/run/frr +%dir %attr(750,root,root) %{rundir} %endif %if 0%{?vty_group:1} %attr(750,%frr_user,%vty_group) %{configdir}/vtysh.conf.sample -- 2.39.5