if[$1-eq1];then
systemctlpresetceph-volume@\*.service>/dev/null2>&1||:
fi
if[$1-ge2];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=/etc/sysconfig/ceph
if[-f$SYSCONF_CEPH-a-r$SYSCONF_CEPH];then
source$SYSCONF_CEPH
fi
if["X$CEPH_AUTO_RESTART_ON_UPGRADE"="Xyes"];then
systemctltry-restartceph-volume@\*.service>/dev/null2>&1||:
fi
fi