From 51ba66e3a940faaaf9da2ec959764a49b7e43903 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Tue, 29 Sep 2020 14:35:51 +0200 Subject: [PATCH] rpm: cleanup: drop use of DISABLE_RESTART_ON_UPDATE This SUSE-specific variable is deprecated and use of %service_del_postun_without_restart macro should be preferred these days. Signed-off-by: Franck Bui (cherry picked from commit 7d99e786df9654d896c43339c684519de4a9afa2) --- ceph.spec.in | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 433e316f96021..2a90c3755de0b 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1453,8 +1453,7 @@ fi %postun base /sbin/ldconfig %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph.target +%service_del_postun_without_restart ceph.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph.target @@ -1613,8 +1612,7 @@ fi %postun mds %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-mds@\*.service ceph-mds.target +%service_del_postun_without_restart ceph-mds@\*.service ceph-mds.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-mds@\*.service ceph-mds.target @@ -1666,8 +1664,7 @@ fi %postun mgr %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-mgr@\*.service ceph-mgr.target +%service_del_postun_without_restart ceph-mgr@\*.service ceph-mgr.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-mgr@\*.service ceph-mgr.target @@ -1819,8 +1816,7 @@ fi %postun mon %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-mon@\*.service ceph-mon.target +%service_del_postun_without_restart ceph-mon@\*.service ceph-mon.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-mon@\*.service ceph-mon.target @@ -1877,8 +1873,7 @@ fi %postun -n rbd-mirror %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target +%service_del_postun_without_restart ceph-rbd-mirror@\*.service ceph-rbd-mirror.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target @@ -1925,8 +1920,7 @@ fi %postun immutable-object-cache test -n "$FIRST_ARG" || FIRST_ARG=$1 %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target +%service_del_postun_without_restart ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target @@ -1987,8 +1981,7 @@ fi %postun radosgw /sbin/ldconfig %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-radosgw@\*.service ceph-radosgw.target +%service_del_postun_without_restart ceph-radosgw@\*.service ceph-radosgw.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-radosgw@\*.service ceph-radosgw.target @@ -2054,8 +2047,7 @@ fi %postun osd %if 0%{?suse_version} -DISABLE_RESTART_ON_UPDATE="yes" -%service_del_postun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target +%service_del_postun_without_restart ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target %endif %if 0%{?fedora} || 0%{?rhel} %systemd_postun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target -- 2.39.5