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