diff --git a/install/mysql.sh b/install/mysql.sh index 927b6a14..74e4f236 100755 --- a/install/mysql.sh +++ b/install/mysql.sh @@ -117,87 +117,39 @@ if [ -f $MYSQL_CONFIG ]; then echo "Updating mysql configuration in $MYSQL_CONFIG" else echo "Creating mysql configuration in $MYSQL_CONFIG" - cat > $MYSQL_CONFIG < $MYSQL_MAIL_CONFIG < "$filename" < $SED_SCRIPT_NAME < $MYSQL_CONFIG.$$ -mv -f $MYSQL_CONFIG.$$ $MYSQL_CONFIG -rm -f $SED_SCRIPT_NAME - -SED_SCRIPT_NAME_MAIL=`mktemp` -cat > $SED_SCRIPT_NAME_MAIL < $MYSQL_MAIL_CONFIG.$$ -mv -f $MYSQL_MAIL_CONFIG.$$ $MYSQL_MAIL_CONFIG -rm -f $SED_SCRIPT_NAME_MAIL +write_mysql_cnf "$MYSQL_CONFIG" "$host" "$database" "$user" "$password" +write_mysql_cnf "$MYSQL_MAIL_CONFIG" "$host" "$database" "$alternc_mail_user" "$alternc_mail_password" # Now we should be able to use the mysql configuration mysql="/usr/bin/mysql --defaults-file=$MYSQL_CONFIG"