Sophie

Sophie

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

mysql55-mysql-server-5.5.37-1.el5.i386.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
/usr/sbin/useradd -M -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
	-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :

PREUN

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

POSTIN

/bin/sh
restorecon -R /opt/rh/mysql55/root >/dev/null 2>&1 || : 
restorecon /etc/rc.d/init.d/mysql55-mysqld >/dev/null 2>&1 || : 
if [ $1 = 1 ]; then
    /sbin/chkconfig --add mysql55-mysqld
fi
/bin/chmod 0755 /opt/rh/mysql55/root/var/lib/mysql
/bin/touch /var/log/mysql55-mysqld.log

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    /sbin/service mysql55-mysqld condrestart >/dev/null 2>&1 || :
fi