slaves shouldn't try to configure mysql

This commit is contained in:
Antoine Beaupré 2013-04-02 20:38:42 +00:00
parent 7ee6c29403
commit 105df9229a
1 changed files with 0 additions and 21 deletions

View File

@ -134,27 +134,6 @@ EOF
sed -e "$SED_SCRIPT" < $CONFIGFILE > $CONFIGFILE.tmp sed -e "$SED_SCRIPT" < $CONFIGFILE > $CONFIGFILE.tmp
mv -f $CONFIGFILE.tmp $CONFIGFILE mv -f $CONFIGFILE.tmp $CONFIGFILE
# Setup grants
db_get "alternc-slave/mysql/host"
MYSQL_HOST="$RET"
if [ "$MYSQL_HOST" != "localhost" -o -e /usr/sbin/mysqld ]; then
# compatibility shims with my.cnf
host="$RET"
db_get "alternc-slave/mysql/db"
database="$RET"
db_get "alternc-slave/mysql/user"
user="$RET"
db_get "alternc-slave/mysql/password"
password="$RET"
# we source (instead of forking) mysql.sh so that it gets the local environment above
. /usr/share/alternc/install/mysql.sh
fi
# forget the password
db_reset alternc-slave/mysql/password || true
db_fset alternc-slave/mysql/password "seen" "false" || true
if [ -e $CONFIGFILE ]; then if [ -e $CONFIGFILE ]; then
# source local.sh variables # source local.sh variables
. $CONFIGFILE . $CONFIGFILE