]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: cleanup: drop useless conditional block in %postun base 42441/head
authorNathan Cutler <ncutler@suse.com>
Tue, 29 Sep 2020 13:52:05 +0000 (15:52 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 21 Jul 2021 16:14:41 +0000 (18:14 +0200)
The "meat" of this conditional was ripped out by
328807f80bb6b5d1aa40631e88d755a194d5d2c2, leaving only an empty shell
behind.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 3b53003f011cfbe51d3471ab9b6cdb9a24ecd4f7)

ceph.spec.in

index 891105b6babdfad886841ac05532ce62b7f209d3..83bf7ded87d4141dfa5a121bb30a3e1f76527321 100644 (file)
@@ -1445,14 +1445,6 @@ fi
 %postun base
 /sbin/ldconfig
 %systemd_postun ceph.target
-if [ $1 -ge 1 ] ; then
-  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
-  # "yes". In any case: if units are not running, do not touch them.
-  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
-  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
-    source $SYSCONF_CEPH
-  fi
-fi
 
 %files common
 %dir %{_docdir}/ceph