- Dont apply presets when migrating from a disabled initscript (bsc#1178481)

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=49
This commit is contained in:
Franck Bui 2020-11-09 11:38:05 +00:00 committed by Git OBS Bridge
parent 179aa8a211
commit 4097fa89ce
2 changed files with 7 additions and 1 deletions

View File

@ -75,7 +75,8 @@ if [ $1 -gt 1 -a -x /usr/bin/systemctl ]; then \
# update (see bsc#1059627) \
rm -f "/run/rpm-%{name}-update-$service-new-in-upgrade" \
\
if [ ! -e "/usr/lib/systemd/system/$service" ]; then \
if [ ! -e "/usr/lib/systemd/system/$service" ] && \
[ ! -e "/etc/init.d/${service%.*}" ]; then \
touch "/run/rpm-%{name}-update-$service-new-in-upgrade" \
fi \
done \

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 9 11:36:56 UTC 2020 - Franck Bui <fbui@suse.com>
- Dont apply presets when migrating from a disabled initscript (bsc#1178481)
-------------------------------------------------------------------
Mon Nov 9 08:47:04 UTC 2020 - Franck Bui <fbui@suse.com>