From 2f7074ce3c35b562963f10e9a8d3bc10a2298987 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 21 Feb 2019 16:41:08 +0100 Subject: [PATCH] correction upgrade de la base --- posttemplate/90-one-db | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/posttemplate/90-one-db b/posttemplate/90-one-db index ae3d4ca..213d001 100644 --- a/posttemplate/90-one-db +++ b/posttemplate/90-one-db @@ -38,6 +38,10 @@ function updateDB() then if [ $(CreoleGet one_database_type) = "mysql" ]; then if [ $(CreoleGet one_ha_server_index 0) = "0" ]; then + HOST=$(CreoleGet one_database_host) + DB=$(CreoleGet one_database_name) + USER=$(CreoleGet one_database_user) + PASS=$(CreoleGet one_database_pass) $cmd upgrade -f -u $USER -p $PASS -d $DB -S $HOST fi else