forked from pool/systemd-rpm-macros
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:
parent
a079230c8d
commit
4463ee13e3
@ -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 \
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user