From 105df9229ac51571dfa7aeadd26254bd427ace87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 2 Apr 2013 20:38:42 +0000 Subject: [PATCH] slaves shouldn't try to configure mysql --- debian/alternc-slave.postinst | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/debian/alternc-slave.postinst b/debian/alternc-slave.postinst index 8cc5299c..fc64a769 100644 --- a/debian/alternc-slave.postinst +++ b/debian/alternc-slave.postinst @@ -134,27 +134,6 @@ EOF sed -e "$SED_SCRIPT" < $CONFIGFILE > $CONFIGFILE.tmp 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 # source local.sh variables . $CONFIGFILE