]> git.proxmox.com Git - mirror_frr.git/commitdiff
redhat: Set permissions on systemd service file
authorMatthew Smith <mgsmith@netgate.com>
Wed, 30 Aug 2017 18:36:20 +0000 (13:36 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 30 Aug 2017 19:02:37 +0000 (14:02 -0500)
Systemd on CentOS 7.3 logs a warning about the execute bit being
set every time the frr service file is invoked by systemctl.
Modify the spec file to explicitly set the permissions to 644.

Signed-off-by: Matthew Smith <mgsmith@netgate.com>
redhat/frr.spec.in

index cc0632b56252035f42cfab193f0ba3e88e506ad2..ea8a31236484bdc81eeaad3c7812cc848cedd6dc 100644 (file)
@@ -326,7 +326,7 @@ rm -f %{buildroot}%{_libdir}/frr/modules/*.la
 # install /etc sources
 %if "%{initsystem}" == "systemd"
 mkdir -p %{buildroot}%{_unitdir}
-install %{zeb_rh_src}/frr.service \
+install -m644 %{zeb_rh_src}/frr.service \
     %{buildroot}%{_unitdir}/frr.service
 install %{zeb_rh_src}/frr.init \
     %{buildroot}%{_sbindir}/frr