]> git.puffer.fish Git - matthieu/frr.git/commitdiff
redhat: replace hardcoded directory
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 20 Jun 2018 12:49:08 +0000 (14:49 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 21 Jun 2018 15:03:29 +0000 (17:03 +0200)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
redhat/frr.spec.in

index 378e5fd96345df0024727fd50691dacbe9d56d21..d1900a8d676c7918b51ab3dfd41407cf2d673eb8 100644 (file)
@@ -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