mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
8a72ee556d
into mysql.com:/space/my/mysql-4.1-merge
21 lines
443 B
Bash
21 lines
443 B
Bash
#!/bin/sh
|
|
#
|
|
# postflight - 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.
|
|
#
|
|
|
|
if cd @prefix@ ; then
|
|
if [ ! -f data/mysql/db.frm ] ; then
|
|
./scripts/mysql_install_db --rpm
|
|
fi
|
|
|
|
if [ -d data ] ; then
|
|
chown -R @MYSQLD_USER@ data
|
|
fi
|
|
else
|
|
exit $?
|
|
fi
|