From: Ludovic CHEVALIER Date: Tue, 19 Mar 2013 14:33:14 +0000 (+0100) Subject: Correction: rule_mysql_configure X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=14b3b9d9ed80021ea1955690f9abf660a8395470 Correction: rule_mysql_configure --- diff --git a/vm_hosted b/vm_hosted index f4d741a..6031797 100755 --- a/vm_hosted +++ b/vm_hosted @@ -711,7 +711,7 @@ rule_mysql_configure () { sudo install -m 644 -o root -g root \ "$tool"/etc/mysql/my.cnf \ /etc/mysql/my.cnf - if test -d /home/mysql; then + if test ! -d /home/mysql; then sudo install -d -m 750 -o mysql -g mysql \ /home/mysql sudo -u mysql mysql_install_db --no-defaults --datadir=/home/mysql/