forked from pool/vsftpd
Accepting request 1003834 from home:schubi2:logrotate
- Migration to /usr/etc: Saving user changed configuration files in /etc and restoring them while an RPM update. OBS-URL: https://build.opensuse.org/request/show/1003834 OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=171
This commit is contained in:
parent
9bab98923d
commit
d92284cf48
@ -8,6 +8,12 @@ Fri Sep 16 06:18:26 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
file when installing on a distribution that comes with such an
|
||||
older version of systemd. [bsc#1196918]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 15 11:00:54 UTC 2022 - Stefan Schubert <schubi@localhost>
|
||||
|
||||
- Migration to /usr/etc: Saving user changed configuration files
|
||||
in /etc and restoring them while an RPM update.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 25 08:23:08 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
@ -1295,3 +1301,4 @@ Mon Oct 22 15:57:40 CEST 2001 - mmj@suse.de
|
||||
- Initial package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 22 15:57:40 CEST 2001 -
|
||||
|
14
vsftpd.spec
14
vsftpd.spec
@ -233,6 +233,20 @@ getent passwd ftpsecure >/dev/null || useradd -r -g nobody -s /bin/false -c "Sec
|
||||
%if %{with_systemd}
|
||||
%service_add_pre %{name}.service %{name}.socket
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1500
|
||||
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||
for i in logrotate.d/%{name} ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||
done
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%posttrans
|
||||
# Migration to /usr/etc, restore just created .rpmsave
|
||||
for i in logrotate.d/%{name} ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||
done
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %{with_systemd}
|
||||
|
Loading…
Reference in New Issue
Block a user