Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 23c1e39337ca61db7ca38cfbcc088ff9 > scriptlet

clement-2.1-0.133.1mdv2007.0.i586.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
  if [ -f /var/lock/subsys/clement ] ; then
    /etc/rc.d/init.d/clement stop
    fi
  export APPNAME=clement
  /var/lib/clement-2.1/support/remove.sh \
	/var/spool/clement-2.1/*/* \
	/etc/pki/clement-2.1/clement.pem \
	/etc/clement-2.1/config.done
  /sbin/chkconfig --del clement
  fi

POSTIN

/bin/sh
if [ "$1" = 1 ]; then
  /sbin/chkconfig --add clement
  fi
if [ "$1" = 2 ]; then
  if [ -f /var/lock/subsys/clement ] ; then
    /etc/rc.d/init.d/clement restart
    fi
  fi

#before upgrade or remove