[vnstat] install unit file as 644 and not 755 (fixes #1157199)

Adrian Reber adrian at fedoraproject.org
Sun Oct 26 08:32:42 UTC 2014


commit 311e2c3ab7ebaa50400baa9dd1e5101893cf4f43
Author: Adrian Reber <adrian at lisas.de>
Date:   Sun Oct 26 09:32:45 2014 +0100

    install unit file as 644 and not 755 (fixes #1157199)

 vnstat.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/vnstat.spec b/vnstat.spec
index 715093d..dd499e9 100644
--- a/vnstat.spec
+++ b/vnstat.spec
@@ -1,7 +1,7 @@
 Summary: Console-based network traffic monitor
 Name: vnstat
 Version: 1.11
-Release: 21%{?dist}
+Release: 22%{?dist}
 
 License: GPLv2
 Group: System Environment/Daemons
@@ -49,7 +49,7 @@ sed -i -e "s,/var/run/,/run/vnstat/,g; \
 %{__install} -d -m 0700 %{buildroot}/run/%{name}/
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
-%{__install} -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
+%{__install} -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/
 %{__rm} -rf examples/init.d
 %{__chmod} 644 examples/vnstat.cgi
 %{__chmod} 644 examples/vnstat.cron
@@ -136,6 +136,9 @@ getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -g %{name} -M \
 
 
 %changelog
+* Sun Oct 26 2014 Adrian Reber <adrian at lisas.de> - 1.11-22
+- install unit file as 644 and not 755 (fixes #1157199)
+
 * Thu Aug 21 2014 Kevin Fenzi <kevin at scrye.com> - 1.11-21
 - Rebuild for rpm bug 1131960
 


More information about the scm-commits mailing list