mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
46318870b0
MacOSX packages using PackageMaker - renamed support-files/PKG -> support-files/SCO (PKG is used in MacOS X terminology as well) support-files/SCO/INSTALL.sh: mvdir support-files/SCO/compile.sh: mvdir support-files/SCO/doc.sh: mvdir support-files/SCO/mkpkg.sh: mvdir support-files/SCO/patch: mvdir support-files/SCO/pkginfo.ini: mvdir support-files/SCO/postinstall: mvdir support-files/SCO/preinstall: mvdir support-files/SCO/preremove: mvdir support-files/SCO/prototype.ini: mvdir support-files/SCO/version: mvdir support-files/MacOSX/make_mysql_pkg.pl: Rename: support-files/make_mysql_pkg.pl -> support-files/MacOSX/make_mysql_pkg.pl configure.in: - added support-files/MacOSX support-files/Makefile.am: - added MacOSX subdirectory
30 lines
576 B
Bash
30 lines
576 B
Bash
#!/bin/sh
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin
|
|
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
|
|
export PATH
|
|
export LD_LIBRARY_PATH
|
|
|
|
D0="/usr/local/mysql-data"
|
|
D="${D0}/mysql"
|
|
|
|
DOFIX=0
|
|
|
|
if /usr/bin/test ! -f ${D}/tables_priv.frm -a -d ${D} ; then
|
|
DOFIX=1
|
|
fi
|
|
|
|
if [ ! -d ${D} ]; then
|
|
DOFIX=2
|
|
/usr/local/bin/mysql_install_db
|
|
fi
|
|
|
|
chown -R mysql $D0
|
|
chgrp -R mysql $D0
|
|
|
|
if /usr/bin/test $DOFIX -eq 1 ; then
|
|
/etc/init.d/mysql start
|
|
/usr/local/bin/mysql_fix_privilege_tables
|
|
else
|
|
/etc/init.d/mysql start || true
|
|
fi
|