diff options
Diffstat (limited to 'support-files/MacOSX/postinstall.sh')
-rw-r--r-- | support-files/MacOSX/postinstall.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/support-files/MacOSX/postinstall.sh b/support-files/MacOSX/postinstall.sh index 957717207cd..daaf10bda8f 100644 --- a/support-files/MacOSX/postinstall.sh +++ b/support-files/MacOSX/postinstall.sh @@ -8,11 +8,14 @@ # afterwards. # -cd @prefix@ -if [ ! -f data/mysql/db.frm ] ; then - ./scripts/mysql_install_db -fi +if cd @prefix@ ; then + if [ ! -f data/mysql/db.frm ] ; then + ./scripts/mysql_install_db + fi -if [ -d data ] ; then - chown -R @MYSQLD_USER@ data + if [ -d data ] ; then + chown -R @MYSQLD_USER@ data + fi +else + exit $? fi |