Ticket #1013 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

configuration d'un mysql remote par alternc

Reported by: anarcat Owned by: benjamin
Priority: normal Milestone: alternc-0.9.7
Component: Package Debian Version: alternc-0.9.6
Severity: major Keywords:
Cc:

Description

Dans alternc.install, on trouve:

if [ -e /usr/sbin/mysqld ]; then
    echo "Setup MySQL and database..."
    /usr/share/alternc/install/mysql.sh "$MYSQL_USER" "$MYSQL_PASS" "$MYSQL_DATABASE"
fi

Plusieurs problèmes avec ceci:

  1. le MYSQL_HOST n'est pas passé et donc le setup ne fonctionne pas avec un mysql remote
  2. mysqld pourrait ne pas être présent qu'on voudrait faire le setup quand même

Le problème 1 devrait se régler assez facilement (en passant MYSQL_HOST).

Le problème 2 est plus complexe: il faudrait probablement toujours configurer le serveur mysql...

Change History

comment:1 Changed 6 years ago by anarcat

En fait, pour régler le 2, il faut faire un check if $HOST != 'localhost' || [ -e mysqld ]

comment:2 Changed 6 years ago by benjamin

  • Owner changed from anonymous to benjamin
  • Status changed from new to assigned

Changeset [1880] seems to fix it, but this has to be tested thoroughly ...

comment:3 Changed 6 years ago by anarcat

  • Status changed from assigned to closed
  • Resolution set to fixed

Let's assume it's ok... Koumbit will suffer the consequences (and fix the eventual problems) if it's not.

Note: See TracTickets for help on using tickets.