mirror of
https://github.com/MariaDB/server.git
synced 2025-09-05 08:04:25 +03:00
- moved helper functions from Bootstrap script to logger.pm Build-tools/Bootstrap: - renamed logfile -> LOGFILE - moved functions abort() and run_command() to logger.pm for better reusability Build-tools/Do-pkg: - heavily reworked: now make use of the logger.pm helper functions - added new options: --dry-run, --log, --mail, --verbose Build-tools/logger.pm: - added functions run_command() and abort() from Bootstrap script for better code reusability support-files/MacOSX/postinstall.sh: - made script more robust
22 lines
438 B
Bash
22 lines
438 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
|
|
fi
|
|
|
|
if [ -d data ] ; then
|
|
chown -R @MYSQLD_USER@ data
|
|
fi
|
|
else
|
|
exit $?
|
|
fi
|