@@ -888,10 +888,12 @@ def post_pref(self, apt_packages, packages):
888888 Log .debug (self , "Creating vimbadmin database if not exist" )
889889 EEMysql .execute (self , "create database if not exists"
890890 " vimbadmin" )
891- Log .debug (self , "Granting all privileges on vimbadmin.* to "
892- "vimbadmin@root IDENTIFIED BY password " )
893- EEMysql .execute (self , "grant all privileges on vimbadmin.* to"
894- " vimbadmin@{0} IDENTIFIED BY"
891+ Log .debug (self , " grant all privileges on `vimbadmin`.* to"
892+ " `vimbadmin`@`{0}` IDENTIFIED BY"
893+ " ' '" .format (self .app .config .get ('mysql' ,
894+ 'grant-host' )))
895+ EEMysql .execute (self , "grant all privileges on `vimbadmin`.* "
896+ " to `vimbadmin`@`{0}` IDENTIFIED BY"
895897 " '{1}'" .format (self .app .config .get ('mysql' ,
896898 'grant-host' ), vm_passwd ),
897899 errormsg = "Cannot grant "
@@ -1022,10 +1024,14 @@ def post_pref(self, apt_packages, packages):
10221024 Log .debug (self , "Creating Database roundcubemail" )
10231025 EEMysql .execute (self , "create database if not exists "
10241026 " roundcubemail" )
1025- Log .debug (self , "Grant all privileges on roundcubemail" )
1027+ Log .debug (self , "grant all privileges"
1028+ " on `roundcubemail`.* to "
1029+ " `roundcube`@`{0}` IDENTIFIED BY "
1030+ "' '" .format (self .app .config .get (
1031+ 'mysql' , 'grant-host' )))
10261032 EEMysql .execute (self , "grant all privileges"
1027- " on roundcubemail.* to "
1028- " roundcube@ {0} IDENTIFIED BY "
1033+ " on ` roundcubemail` .* to "
1034+ " ` roundcube`@` {0}` IDENTIFIED BY "
10291035 "'{1}'" .format (self .app .config .get (
10301036 'mysql' , 'grant-host' ),
10311037 rc_passwd ))
0 commit comments