From: Ruben Kerkhof Date: Wed, 20 Jun 2018 12:49:08 +0000 (+0200) Subject: redhat: replace hardcoded directory X-Git-Tag: frr-6.1-dev~203^2~20 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=98a2aecb7ba26b5965d9f4f17dfe53fe886f0c35;p=matthieu%2Ffrr.git redhat: replace hardcoded directory Signed-off-by: Ruben Kerkhof --- 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