modify \* to \x2a

This commit is contained in:
wangzengliang 2022-03-09 14:39:47 +08:00
parent 913453bb12
commit c8fcbec948

View File

@ -1662,7 +1662,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-mds@\*.service ceph-mds.target %systemd_post ceph-mds@\x2a.service ceph-mds.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-mds.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-mds.target >/dev/null 2>&1 || :
@ -1673,11 +1673,11 @@ fi
%service_del_preun ceph-mds@\*.service ceph-mds.target %service_del_preun ceph-mds@\*.service ceph-mds.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-mds@\*.service ceph-mds.target %systemd_preun ceph-mds@\x2a.service ceph-mds.target
%endif %endif
%postun mds %postun mds
%systemd_postun ceph-mds@\*.service ceph-mds.target %systemd_postun ceph-mds@\x2a.service ceph-mds.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -1686,7 +1686,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-mds@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-mds@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -1706,7 +1706,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-mgr@\*.service ceph-mgr.target %systemd_post ceph-mgr@\x2a.service ceph-mgr.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-mgr.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-mgr.target >/dev/null 2>&1 || :
@ -1717,11 +1717,11 @@ fi
%service_del_preun ceph-mgr@\*.service ceph-mgr.target %service_del_preun ceph-mgr@\*.service ceph-mgr.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-mgr@\*.service ceph-mgr.target %systemd_preun ceph-mgr@\x2a.service ceph-mgr.target
%endif %endif
%postun mgr %postun mgr
%systemd_postun ceph-mgr@\*.service ceph-mgr.target %systemd_postun ceph-mgr@\x2a.service ceph-mgr.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -1730,7 +1730,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-mgr@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-mgr@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -1845,7 +1845,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-mon@\*.service ceph-mon.target %systemd_post ceph-mon@\x2a.service ceph-mon.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || :
@ -1856,11 +1856,11 @@ fi
%service_del_preun ceph-mon@\*.service ceph-mon.target %service_del_preun ceph-mon@\*.service ceph-mon.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-mon@\*.service ceph-mon.target %systemd_preun ceph-mon@\x2a.service ceph-mon.target
%endif %endif
%postun mon %postun mon
%systemd_postun ceph-mon@\*.service ceph-mon.target %systemd_postun ceph-mon@\x2a.service ceph-mon.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -1869,7 +1869,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-mon@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-mon@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -1894,7 +1894,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post cephfs-mirror@\*.service cephfs-mirror.target %systemd_post cephfs-mirror@\x2a.service cephfs-mirror.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start cephfs-mirror.target >/dev/null 2>&1 || : /usr/bin/systemctl start cephfs-mirror.target >/dev/null 2>&1 || :
@ -1905,11 +1905,11 @@ fi
%service_del_preun cephfs-mirror@\*.service cephfs-mirror.target %service_del_preun cephfs-mirror@\*.service cephfs-mirror.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun cephfs-mirror@\*.service cephfs-mirror.target %systemd_preun cephfs-mirror@\x2a.service cephfs-mirror.target
%endif %endif
%postun -n cephfs-mirror %postun -n cephfs-mirror
%systemd_postun cephfs-mirror@\*.service cephfs-mirror.target %systemd_postun cephfs-mirror@\x2a.service cephfs-mirror.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -1918,7 +1918,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart cephfs-mirror@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart cephfs-mirror@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -1939,7 +1939,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-rbd-mirror@\*.service ceph-rbd-mirror.target %systemd_post ceph-rbd-mirror@\x2a.service ceph-rbd-mirror.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-rbd-mirror.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-rbd-mirror.target >/dev/null 2>&1 || :
@ -1950,11 +1950,11 @@ fi
%service_del_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target %service_del_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target %systemd_preun ceph-rbd-mirror@\x2a.service ceph-rbd-mirror.target
%endif %endif
%postun -n rbd-mirror %postun -n rbd-mirror
%systemd_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target %systemd_postun ceph-rbd-mirror@\x2a.service ceph-rbd-mirror.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -1963,7 +1963,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-rbd-mirror@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-rbd-mirror@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -1980,7 +1980,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target %systemd_post ceph-immutable-object-cache@\x2a.service ceph-immutable-object-cache.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-immutable-object-cache.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-immutable-object-cache.target >/dev/null 2>&1 || :
@ -1991,11 +1991,11 @@ fi
%service_del_preun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target %service_del_preun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target %systemd_preun ceph-immutable-object-cache@\x2a.service ceph-immutable-object-cache.target
%endif %endif
%postun immutable-object-cache %postun immutable-object-cache
%systemd_postun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target %systemd_postun ceph-immutable-object-cache@\x2a.service ceph-immutable-object-cache.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -2004,7 +2004,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-immutable-object-cache@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-immutable-object-cache@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -2037,7 +2037,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-radosgw@\*.service ceph-radosgw.target %systemd_post ceph-radosgw@\x2a.service ceph-radosgw.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-radosgw.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-radosgw.target >/dev/null 2>&1 || :
@ -2048,12 +2048,12 @@ fi
%service_del_preun ceph-radosgw@\*.service ceph-radosgw.target %service_del_preun ceph-radosgw@\*.service ceph-radosgw.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-radosgw@\*.service ceph-radosgw.target %systemd_preun ceph-radosgw@\x2a.service ceph-radosgw.target
%endif %endif
%postun radosgw %postun radosgw
/sbin/ldconfig /sbin/ldconfig
%systemd_postun ceph-radosgw@\*.service ceph-radosgw.target %systemd_postun ceph-radosgw@\x2a.service ceph-radosgw.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -2062,7 +2062,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-radosgw@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-radosgw@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi
@ -2094,7 +2094,7 @@ if [ $1 -eq 1 ] ; then
fi fi
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_post ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target %systemd_post ceph-osd@\x2a.service ceph-volume@\x2a.service ceph-osd.target
%endif %endif
if [ $1 -eq 1 ] ; then if [ $1 -eq 1 ] ; then
/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || : /usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
@ -2110,11 +2110,11 @@ fi
%service_del_preun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target %service_del_preun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target
%endif %endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler} %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
%systemd_preun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target %systemd_preun ceph-osd@\x2a.service ceph-volume@\x2a.service ceph-osd.target
%endif %endif
%postun osd %postun osd
%systemd_postun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target %systemd_postun ceph-osd@\x2a.service ceph-volume@\x2a.service ceph-osd.target
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
# Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to # 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. # "yes". In any case: if units are not running, do not touch them.
@ -2123,7 +2123,7 @@ if [ $1 -ge 1 ] ; then
source $SYSCONF_CEPH source $SYSCONF_CEPH
fi fi
if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
/usr/bin/systemctl try-restart ceph-osd@\*.service ceph-volume@\*.service > /dev/null 2>&1 || : /usr/bin/systemctl try-restart ceph-osd@\x2a.service ceph-volume@\x2a.service > /dev/null 2>&1 || :
fi fi
fi fi