mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
adc470c290
- postinstall of the Mac OS X PKG failed as a parameter for mysql_install_db was changed for MySQL 4.1 - postinstall of the Server RPM failed as mysql_create_system_tables was missing from the file list support-files/MacOSX/postinstall.sh: - Fix parameter for mysql_install_db (it was changed from -IN-RPM to --rpm in the 4.1 tree) support-files/mysql.spec.sh: - Added missing file mysql_create_system_tables to the server subpackage
21 lines
444 B
Bash
21 lines
444 B
Bash
#!/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.
|
|
#
|
|
|
|
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
|