Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > d92645a8a72e941ce525e8bde1829a93 > scriptlet

Zope-zserver-2.1.4-2mdk.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
    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

POSTUN

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