Skip to content

Commit 651f7ca

Browse files
author
shital.rtcamp
committed
fixed query error vimbadmin and roundcubmail in stack.py
1 parent a9c5bb9 commit 651f7ca

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

ee/cli/plugins/stack.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,12 @@ def post_pref(self, apt_packages, packages):
887887
Log.debug(self, "Creating vimbadmin database if not exist")
888888
EEMysql.execute(self, "create database if not exists"
889889
" vimbadmin")
890-
Log.debug(self, "Granting all privileges on vimbadmin.* to "
891-
"vimbadmin@root IDENTIFIED BY password ")
892-
EEMysql.execute(self, "grant all privileges on vimbadmin.* to"
893-
" vimbadmin@{0} IDENTIFIED BY"
890+
Log.debug(self, " grant all privileges on `vimbadmin`.* to"
891+
" `vimbadmin`@`{0}` IDENTIFIED BY"
892+
" ' '".format(self.app.config.get('mysql',
893+
'grant-host')))
894+
EEMysql.execute(self, "grant all privileges on `vimbadmin`.* "
895+
" to `vimbadmin`@`{0}` IDENTIFIED BY"
894896
" '{1}'".format(self.app.config.get('mysql',
895897
'grant-host'), vm_passwd),
896898
errormsg="Cannot grant "
@@ -1021,10 +1023,14 @@ def post_pref(self, apt_packages, packages):
10211023
Log.debug(self, "Creating Database roundcubemail")
10221024
EEMysql.execute(self, "create database if not exists "
10231025
" roundcubemail")
1024-
Log.debug(self, "Grant all privileges on roundcubemail")
1026+
Log.debug(self, "grant all privileges"
1027+
" on `roundcubemail`.* to "
1028+
" `roundcube`@`{0}` IDENTIFIED BY "
1029+
"' '".format(self.app.config.get(
1030+
'mysql', 'grant-host')))
10251031
EEMysql.execute(self, "grant all privileges"
1026-
" on roundcubemail.* to "
1027-
" roundcube@{0} IDENTIFIED BY "
1032+
" on `roundcubemail`.* to "
1033+
" `roundcube`@`{0}` IDENTIFIED BY "
10281034
"'{1}'".format(self.app.config.get(
10291035
'mysql', 'grant-host'),
10301036
rc_passwd))

0 commit comments

Comments
 (0)