Skip to content

Commit

Permalink
Note that script is used by mysql-cluster and tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed Mar 27, 2015
1 parent 7a4173f commit 53c5515
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions percona/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# This script is currently used by:
#
# databases/mysql-cluster
# joyent/mysql73-cluster
# joyent/percona55-cluster
# joyent/percona56-cluster
Expand All @@ -12,10 +13,9 @@
case ${STAGE} in
POST-INSTALL)
# Logging
if [ ! -f @VARBASE@/log/mysql/error.log ]; then
if [ ! -d @VARBASE@/log/mysql ]; then
mkdir -p @VARBASE@/log/mysql
touch @VARBASE@/log/mysql/error.log
chown -R @MYSQL_USER@:@MYSQL_GROUP@ @VARBASE@/log/mysql
chown @MYSQL_USER@:@MYSQL_GROUP@ @VARBASE@/log/mysql
fi

# Supported configuration files, used later.
Expand Down Expand Up @@ -79,10 +79,7 @@ POST-INSTALL)
done

# Initialize MySQL system tables
if [ -d @MYSQL_DATADIR@/mysql ]; then
echo "Skipping MySQL database initialization, as databases" \
"already exist."
else
if [ ! -d @MYSQL_DATADIR@/mysql ]; then
@LOCALBASE@/bin/mysql_install_db \
--basedir=@LOCALBASE@ \
--datadir=@MYSQL_DATADIR@ \
Expand Down

0 comments on commit 53c5515

Please sign in to comment.