Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > e71e5c9da6a48e749f1a42e049a9f48e > scriptlet

piranha-0.8.4-26.el5_10.1.i386.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -g 60 -r -f piranha >/dev/null 2>&1 ||:
/usr/sbin/useradd -u 60 -g 60 -d /etc/sysconfig/ha -r   \
        -s /sbin/nologin piranha >/dev/null 2>&1 ||:

PREUN

/bin/sh
if [ $1 = 0 ]; then
	/sbin/service pulse stop >/dev/null 2>&1
	/sbin/chkconfig --del pulse
fi
if [ $1 = 0 ]; then
	/sbin/service piranha-gui stop >/dev/null 2>&1
	/sbin/chkconfig --del piranha-gui
fi

POSTIN

/bin/sh
/sbin/chkconfig --add pulse
/sbin/chkconfig --add piranha-gui

POSTUN

/bin/sh
if [ $1 = 0 ] ; then
	/usr/sbin/userdel piranha
	# userdel removes group as well
	# /usr/sbin/groupdel piranha
fi
if [ $1 = 1 ] ; then
	/sbin/service pulse condrestart >/dev/null 2>&1
	/sbin/service piranha-gui condrestart >/dev/null 2>&1
fi