postinstall.sh 444 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
#
# postinstall - this script will be executed after the MySQL PKG
# installation has been performed.
#
# This script will install the MySQL privilege tables using the
# "mysql_install_db" script and will correct the ownerships of these files
# afterwards.
#

11 12
if cd @prefix@ ; then
	if [ ! -f data/mysql/db.frm ] ; then
unknown's avatar
unknown committed
13
		./scripts/mysql_install_db --rpm
14
	fi
15

16 17 18 19 20
	if [ -d data ] ; then
		chown -R @MYSQLD_USER@ data
	fi
else
	exit $?
21
fi