mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
Merge pull request #42452 from smithfarm/wip-first-arg-immutable
rpm: drop use of $FIRST_ARG in ceph-immutable-object-cache Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
ab7e753ab5
@ -2010,9 +2010,8 @@ fi
|
||||
%endif
|
||||
|
||||
%postun immutable-object-cache
|
||||
test -n "$FIRST_ARG" || FIRST_ARG=$1
|
||||
%systemd_postun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target
|
||||
if [ $FIRST_ARG -ge 1 ] ; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user