Browse Source

fixed query error vimbadmin and roundcubmail in stack.py

bugfixes
shital.rtcamp 10 years ago
parent
commit
651f7ca571
  1. 20
      ee/cli/plugins/stack.py

20
ee/cli/plugins/stack.py

@ -887,10 +887,12 @@ class EEStackController(CementBaseController):
Log.debug(self, "Creating vimbadmin database if not exist") Log.debug(self, "Creating vimbadmin database if not exist")
EEMysql.execute(self, "create database if not exists" EEMysql.execute(self, "create database if not exists"
" vimbadmin") " vimbadmin")
Log.debug(self, "Granting all privileges on vimbadmin.* to " Log.debug(self, " grant all privileges on `vimbadmin`.* to"
"vimbadmin@root IDENTIFIED BY password ") " `vimbadmin`@`{0}` IDENTIFIED BY"
EEMysql.execute(self, "grant all privileges on vimbadmin.* to" " ' '".format(self.app.config.get('mysql',
" vimbadmin@{0} IDENTIFIED BY" 'grant-host')))
EEMysql.execute(self, "grant all privileges on `vimbadmin`.* "
" to `vimbadmin`@`{0}` IDENTIFIED BY"
" '{1}'".format(self.app.config.get('mysql', " '{1}'".format(self.app.config.get('mysql',
'grant-host'), vm_passwd), 'grant-host'), vm_passwd),
errormsg="Cannot grant " errormsg="Cannot grant "
@ -1021,10 +1023,14 @@ class EEStackController(CementBaseController):
Log.debug(self, "Creating Database roundcubemail") Log.debug(self, "Creating Database roundcubemail")
EEMysql.execute(self, "create database if not exists " EEMysql.execute(self, "create database if not exists "
" roundcubemail") " roundcubemail")
Log.debug(self, "Grant all privileges on roundcubemail") Log.debug(self, "grant all privileges"
" on `roundcubemail`.* to "
" `roundcube`@`{0}` IDENTIFIED BY "
"' '".format(self.app.config.get(
'mysql', 'grant-host')))
EEMysql.execute(self, "grant all privileges" EEMysql.execute(self, "grant all privileges"
" on roundcubemail.* to " " on `roundcubemail`.* to "
" roundcube@{0} IDENTIFIED BY " " `roundcube`@`{0}` IDENTIFIED BY "
"'{1}'".format(self.app.config.get( "'{1}'".format(self.app.config.get(
'mysql', 'grant-host'), 'mysql', 'grant-host'),
rc_passwd)) rc_passwd))

Loading…
Cancel
Save