Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > 28275f58a4633fa275e480456f85fd8a > scriptlet

zope-2.7.0rc2-2mdk.i586.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 

# 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

/sbin/chkconfig --add zope

# 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