summaryrefslogtreecommitdiff
path: root/support-files/MacOSX/postinstall.sh
blob: 957717207cd8a2f1b59647868bf2beced98d156c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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.
#

cd @prefix@
if [ ! -f data/mysql/db.frm ] ; then
	./scripts/mysql_install_db
fi

if [ -d data ] ; then
	chown -R @MYSQLD_USER@ data
fi