Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > ffd87fafecca7c85cc43f3d3a65f6c8d > scriptlet

tinyerp-server-4.2.3.4-7.fc14.noarch.rpm

PREIN

/bin/sh
/usr/sbin/fedora-groupadd 13 -r tinyerp &>/dev/null || :
/usr/sbin/fedora-useradd 13 -r -s /sbin/nologin -d /var/spool/tinyerp -M \
	-c 'TinyERP Server Owner' -g tinyerp tinyerp &>/dev/null || :

exit 0

PREUN

/bin/sh
if [ $1 = 0 ] ; then
	/sbin/service tinyerp-server stop >/dev/null 2>&1
	rm -f /var/log/tinyerp/*
	/sbin/chkconfig --del tinyerp-server
fi

POSTIN

/bin/sh
/sbin/chkconfig --add tinyerp-server

POSTUN

/bin/sh
if [ "$1" -ge "1" ] ; then
	/sbin/service tinyerp-server condrestart >/dev/null 2>&1
fi
test "$1" != 0 || /usr/sbin/fedora-userdel  tinyerp &>/dev/null || :
test "$1" != 0 || /usr/sbin/fedora-groupdel tinyerp &>/dev/null || :