summaryrefslogtreecommitdiff
path: root/support-files/MacOSX/postflight.sh
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2005-08-12 08:13:02 +0200
committerunknown <lenz@mysql.com>2005-08-12 08:13:02 +0200
commit32e29cd7e2b8545c4c8c972803b720c0905453db (patch)
treee440b2049eadce6dfc7180c252583c89086cf851 /support-files/MacOSX/postflight.sh
parent0ba4be2bd4d9a301e7e7fc1088e5d2b859789324 (diff)
parente11a23a8aa2493dc455b5f85e0e894cc944836a0 (diff)
downloadmariadb-git-32e29cd7e2b8545c4c8c972803b720c0905453db.tar.gz
Merge mysql.com:/space/my/mysql-4.0-merge
into mysql.com:/space/my/mysql-4.1-merge support-files/MacOSX/Makefile.am: Auto merged support-files/Makefile.am: Auto merged support-files/MacOSX/postflight.sh: Auto merged
Diffstat (limited to 'support-files/MacOSX/postflight.sh')
-rw-r--r--support-files/MacOSX/postflight.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/support-files/MacOSX/postflight.sh b/support-files/MacOSX/postflight.sh
new file mode 100644
index 00000000000..451eb65e0d7
--- /dev/null
+++ b/support-files/MacOSX/postflight.sh
@@ -0,0 +1,21 @@
+#!/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