[quagga] Set ownership of generated vtysh.conf properly
Adam Tkac
atkac at fedoraproject.org
Thu May 3 09:33:11 UTC 2012
commit f301ef12012d20f9d2bdf2bc234dd9a33745bb78
Author: David Ward <david.ward at ll.mit.edu>
Date: Sat Apr 21 21:24:14 2012 -0400
Set ownership of generated vtysh.conf properly
quagga.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/quagga.spec b/quagga.spec
index f9df184..f25809e 100644
--- a/quagga.spec
+++ b/quagga.spec
@@ -284,7 +284,13 @@ fi
if [ ! -e %{_sysconfdir}/vtysh.conf ]; then
touch %{_sysconfdir}/vtysh.conf
chmod 640 %{_sysconfdir}/vtysh.conf
+%if %quagga_user
+%if %vty_group
chown %{quagga_user}:%{vty_group} %{_sysconfdir}/vtysh.conf
+%else
+ chown %{quagga_user}:%{quagga_user} %{_sysconfdir}/vtysh.conf
+%endif
+%endif
fi
%postun
More information about the scm-commits
mailing list