Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > contrib-release > by-pkgid > 596c0efbee14ae0a0f02758e4a5edc5d > scriptlet

zope-2.9.6.final-2mdv2007.1.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user zope $1 zope /var/lib/zope /bin/false

PREUN

/bin/sh
/usr/share/rpm-helper/del-service zope $1 zope

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service zope $1 zope 
/sbin/chkconfig --add zope

# disable this feature : it creates problem during update and
# is confusing for somebody who don't care about installation message
# zope display a how to create an administrative user if it doesn't exit
# README.install.urpmi display the rest of the text

# # write a 10 digit random default admin password into acl_users
# passwd=`head -c4 /dev/urandom | od -tu4 -N4 | sed -ne '1s/.* //p'`
# /usr/bin/zopectl adduser admin $passwd
# # inform the user of the default username/password combo and port
# echo
# echo A Zope instance has been installed.  Run it via
# echo \"/etc/rc.d/init.d/zope start\".  Log in via a browser on port 9080.
# echo
# echo Zope has default administrative username/password combination.  The
# echo "administrative username is \"admin\" and the password is \"$passwd\"."
# echo Please remember this so you are able to log in for the first time.
# echo

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user zope $1 zope