fix synergy erasing log file on upgrade
On CentOS 7, upgrading Synergy would cause the Synergy log file to be overwritten. We fix this behaviour in this commit. Note that now the Synergy log file is created during Synergy first run, not during the first installation of Synergy. fixes bug #1664502 Sem-Ver: bugfix Change-Id: Id1a4fc3871a141f1d5fd0f2c95c10464e86dda8e
This commit is contained in:
parent
2edc9e2ef2
commit
cb935dbcbc
@ -49,7 +49,6 @@ install -D -m0644 config/synergy.conf %{buildroot}%{_sysconfdir}/synergy/s
|
||||
install -D -m0644 scripts/synergy.service %{buildroot}%{_unitdir}/synergy.service
|
||||
install -d -m0700 %{buildroot}%{_localstatedir}/lib/synergy
|
||||
install -d -m0755 %{buildroot}%{_localstatedir}/log/synergy
|
||||
touch %{buildroot}%{_localstatedir}/log/synergy/synergy.log
|
||||
install -d -m0755 %{buildroot}%{_localstatedir}/run/synergy
|
||||
install -d -m0755 %{buildroot}%{_localstatedir}/lock/synergy
|
||||
|
||||
@ -64,7 +63,6 @@ install -d -m0755 %{buildroot}%{_localstatedir}/lock/s
|
||||
%defattr(-, synergy, root, -)
|
||||
%{_localstatedir}/lock/synergy/
|
||||
%{_localstatedir}/log/synergy/
|
||||
%{_localstatedir}/log/synergy/synergy.log
|
||||
%{_localstatedir}/run/synergy/
|
||||
%attr(700, synergy, root) %{_localstatedir}/lib/synergy/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user