Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 6649d3f31e74f862dd152ad48ca479a1 > scriptlet

Zope-zserver-2.2.4-1.5mdk.i586.rpm

PREIN

/bin/sh
  /usr/sbin/useradd -o -r -M -s /bin/bash -d /var/zope -c "Zope Server" zope >/dev/null 2>&1

PREUN

/bin/sh
  if [ "$1" = 0 ] ; then
    /etc/rc.d/init.d/zope stop
    if [ /var/zope/zserver_wo_pcgi.sh -ef /var/zope/zserver.sh ]; then
      rm /var/zope/zserver.sh
    fi
    if [ /usr/share/zope/import -ef /var/zope/import ]; then
      rm /var/zope/import
    fi
    /sbin/chkconfig --del zope
  fi

POSTIN

/bin/sh
  /sbin/chkconfig --add zope
  ln -sf /var/zope/zserver_wo_pcgi.sh /var/zope/zserver.sh
  ln -sf /usr/share/zope/import /var/zope/import
#  /etc/rc.d/init.d/zope start

POSTUN

/bin/sh
  if [ $1 = 0 ] ; then
	userdel zope >/dev/null 2>&1 || :
  fi