Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 2780034bc2ff00d245964cd017d00020 > scriptlet

clement-2.1.320-6.fc12.i686.rpm

PREIN

/bin/sh
if [ "$1" = 1 ]; then
  /usr/sbin/groupadd -r clement 2>/dev/null || :
  /usr/sbin/useradd -r -M -d /var/spool/clement-2.1 \
        -g clement -c "Clement daemon" \
        -s /sbin/nologin clement 2>/dev/null || :
  fi

PREUN

/bin/sh
if [ "$1" = 0 ]; then
  if [ -f /var/lock/subsys/clement ] ; then
    /etc/rc.d/init.d/clement stop 2>/dev/null || :
    fi
  export APPNAME=clement
  /usr/lib/clement-2.1/support/remove.sh \
    /etc/pki/clement-2.1/clement.pem \
    /etc/clement-2.1/config.done 2>/dev/null || :
  /sbin/chkconfig --del clement 2>/dev/null || :
  (
  /bin/echo -n "$APPNAME has been removed on "; date
  /bin/echo "remaining file in this directory are logs and Emails"
  /bin/echo "created while $APPNAME was in production."
  /bin/echo "these files _may_ be removed too, but that they could"
  /bin/echo "contain valuable data and admin should be careful"
  /bin/echo "when removing them."
  ) > /var/spool/clement-2.1/README-clement-removed
  fi

POSTIN

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