~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to support-files/MacOSX/postflight.sh

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# postflight - this script will be executed after the MySQL PKG
 
4
# installation has been performed.
 
5
#
 
6
# This script will install the MySQL privilege tables using the
 
7
# "mysql_install_db" script and will correct the ownerships of these files
 
8
# afterwards.
 
9
#
 
10
 
 
11
if cd @prefix@ ; then
 
12
        if [ ! -f data/mysql/db.frm ] ; then
 
13
                ./scripts/mysql_install_db --rpm
 
14
        fi
 
15
 
 
16
        if [ -d data ] ; then
 
17
                chown -R @MYSQLD_USER@ data
 
18
        fi
 
19
else
 
20
        exit $?
 
21
fi