Package ceph-volume: Scripts

Post install

if [ $1 -eq 1 ] ; then
  systemctl preset ceph-volume@\*.service >/dev/null 2>&1 || :
fi

if [ $1 -ge 2 ] ; 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
    systemctl try-restart ceph-volume@\*.service > /dev/null 2>&1 || :
  fi
fi
Pre uninstall

1
2
3
4
5
 
if [ $1 -eq 0 ] && sd_booted; then 
    # Package removal, not upgrade 
    /lib/systemd/systemd-update-helper remove-system-units ceph-volume@\*.service || : 
fi