diff options
author | lenz@mysql.com <> | 2003-02-25 15:20:07 +0100 |
---|---|---|
committer | lenz@mysql.com <> | 2003-02-25 15:20:07 +0100 |
commit | 541ba610b1e2f42432330368e235259b9e3c0a41 (patch) | |
tree | 8073215415f8ff5b8fb24a6df0a5e682d9ddac8b /support-files | |
parent | fb43cce1f6fc651ad0ffab7af98f041c01d273b7 (diff) | |
download | mariadb-git-541ba610b1e2f42432330368e235259b9e3c0a41.tar.gz |
- Heavily reworked the Do-pkg script to use functions from logger.pm
- moved helper functions from Bootstrap script to logger.pm
Diffstat (limited to 'support-files')
-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 |