Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 27e5bc1f8ba8c7cd9afa39985e688244 > scriptlet

logtrend-storageserver-0.82.2-2mdk.noarch.rpm

PREUN

/bin/sh
# only do this if it is not an upgrade
if [ $1 = 0 ]; then service StorageServer stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del StorageServer; fi; 
if [ $1 -eq 0 ]
then 
   [ -f /etc/rc.d/init.d/StorageServer ] && \
   	/etc/rc.d/init.d/StorageServer stop
fi

POSTIN

/bin/sh
if [ $1 = 1 ]; then /sbin/chkconfig --add StorageServer; else if [ -f /var/lock/subsys/StorageServer ]; then service StorageServer restart > /dev/null 2>/dev/null || : ; fi; fi; 
# restart server if this is an upgrade
if [ $1 -gt 1 ]
then
   [ -f /etc/rc.d/init.d/StorageServer ] && \
   	/etc/rc.d/init.d/StorageServer restart
fi

echo -e	"**************************************************"
echo -e	"      You will need to create a local or"
echo -e "   remote PostgreSQL database (Version >= 7.0)"
echo -e	"**************************************************"

POSTUN

/bin/sh
echo -e	"**************************************************"
echo -e	"       To complete the removal you must"
echo -e "    remove the PostgreSQL databases manually."
echo -e	"**************************************************"