2003-02-19 21:02:05 +01:00
|
|
|
#!/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.
|
|
|
|
#
|
|
|
|
|
2003-02-25 15:20:07 +01:00
|
|
|
if cd @prefix@ ; then
|
|
|
|
if [ ! -f data/mysql/db.frm ] ; then
|
2003-12-08 14:38:29 +01:00
|
|
|
./scripts/mysql_install_db --rpm
|
2003-02-25 15:20:07 +01:00
|
|
|
fi
|
2003-02-19 21:02:05 +01:00
|
|
|
|
2003-02-25 15:20:07 +01:00
|
|
|
if [ -d data ] ; then
|
|
|
|
chown -R @MYSQLD_USER@ data
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
exit $?
|
2003-02-19 21:02:05 +01:00
|
|
|
fi
|