From 6a75234cb827da916fd9dc06cd0ffe3c87e7edda Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 19 Feb 2019 09:18:57 +0100 Subject: [PATCH] =?UTF-8?q?ne=20migrer=20sqlite=20vers=20mysql=20qu'=C3=A0?= =?UTF-8?q?=20l'instance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- posttemplate/90-one-db | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posttemplate/90-one-db b/posttemplate/90-one-db index f5f2ea5..5fd0331 100644 --- a/posttemplate/90-one-db +++ b/posttemplate/90-one-db @@ -6,6 +6,7 @@ # . /usr/lib/eole/ihm.sh +script="$1" function clean_backups() { @@ -42,7 +43,7 @@ function updateDB() } function to_mysql() { - if [ $(CreoleGet one_database_type) = "mysql" ] && [ $(CreoleGet one_ha_role leader) = "leader" ]; then + if [ "$script" = 'instance' ] && [ $(CreoleGet one_database_type) = "mysql" ] && [ $(CreoleGet one_ha_role leader) = "leader" ]; then Question_ouinon "Voulez-vous migrer de SQLite à Mysql ?" "True" "non" "warn" rep=$(echo "$?") if [ "$rep" == "0" ]; then