Set ownership of generated vtysh.conf properly
This commit is contained in:
parent
ff438e62ce
commit
f301ef1201
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user