From bc15ca621dab51280c49a370709f4006082f7d13 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 25 Apr 2020 21:44:42 +0200 Subject: [PATCH] Fix db initialization during upgrade --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 420c53f..713e1bc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -188,6 +188,9 @@ ynh_local_curl "/ecrire/?suivant" "exec=install" "etape=3" "adresse_db=localhost #ynh_local_curl "/ecrire/?suivant" "exec=install" "etape=ldap5" "adresse_ldap=localhost" "port_ldap=389" "tls_ldap=no" "protocole_ldap=3" "base_ldap=dc=yunohost,dc=org" "statut_ldap=$status" "ldap_login=sAMAccountName,uid,login,userid,cn,sn" "ldap_nom=cn" "ldap_email=mail" "ldap_bio=description" #ynh_local_curl "/ecrire/?suivant" "exec=install" "etape=3" "ldap_present=true" +# Fix db initialization +ynh_local_curl "/ecrire/?exec=install" "etape=3b" + email=$(yunohost user info $admin | grep mail: | cut -d' ' -f2 | tr -d '\n') ynh_local_curl "/ecrire/?suivant" "exec=install" "etape=3b" "adresse_db=localhost" "login_db=$db_name" "pass_db=$db_pwd" "server_db=mysql" "sel_db=$db_name" "nom=$admin" "email=$email" "login=$admin" "pass=$password" "pass_verif=$password" ynh_local_curl "/ecrire/?suivant" "exec=install" "etape=fin"