Sophie

Sophie

distrib > Mandriva > 7.1 > i586 > by-pkgid > 41f37976c22db334251af596fe978e8c > scriptlet

Zope-pcgi-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_w_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_w_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

####
# Section: Verify Script (Check for Proper Installation of Package)
####