diff options
Diffstat (limited to 'support-files/MacOSX/postinstall.sh')
-rw-r--r-- | support-files/MacOSX/postinstall.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/support-files/MacOSX/postinstall.sh b/support-files/MacOSX/postinstall.sh new file mode 100644 index 00000000000..957717207cd --- /dev/null +++ b/support-files/MacOSX/postinstall.sh @@ -0,0 +1,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 |