3
0

Accepting request 876976 from home:alarrosa:branches:Base:System

- Don't pass -f to rm in %service_add_post nor %systemd_user_post

OBS-URL: https://build.opensuse.org/request/show/876976
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=64
This commit is contained in:
Franck Bui 2021-03-05 11:19:59 +00:00 committed by Git OBS Bridge
parent a079230c8d
commit 4463ee13e3
2 changed files with 7 additions and 2 deletions

View File

@ -101,7 +101,7 @@ if [ -x /usr/bin/systemctl ]; then \
for service in %{?*} ; do \
if [ -e "/run/systemd/rpm/needs-preset/$service" ]; then \
/usr/bin/systemctl preset "$service" || : \
rm -f /run/systemd/rpm/needs-preset/$service \
rm "/run/systemd/rpm/needs-preset/$service" || : \
else \
/usr/lib/systemd/systemd-sysv-convert --apply %{?*} || : \
fi \
@ -188,7 +188,7 @@ if [ -x /usr/bin/systemctl ]; then \
for service in %{?*} ; do \
if [ -e "/run/systemd/rpm/needs-user-preset/$service" ]; then \
/usr/bin/systemctl --global preset "$service" || : \
rm -f /run/systemd/rpm/needs-user-preset/$service \
rm "/run/systemd/rpm/needs-user-preset/$service" || : \
fi \
done \
fi \

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 5 11:10:16 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- Don't pass -f to rm in %service_add_post nor %systemd_user_post
-------------------------------------------------------------------
Fri Mar 5 11:03:49 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>