mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-01-09 16:36:26 +00:00
fix: condition for grants for aws rds
This commit is contained in:
parent
c2ebdfcf8b
commit
c2a0e4f057
@ -96,7 +96,7 @@ def main():
|
|||||||
grant_privileges = "ALL PRIVILEGES"
|
grant_privileges = "ALL PRIVILEGES"
|
||||||
|
|
||||||
# for Amazon RDS
|
# for Amazon RDS
|
||||||
if config.get(RDS_DB) or site_config.get(RDS_DB)
|
if config.get(RDS_DB) or site_config.get(RDS_DB):
|
||||||
grant_privileges = RDS_PRIVILEGES
|
grant_privileges = RDS_PRIVILEGES
|
||||||
|
|
||||||
command = mysql_command + [f"GRANT {grant_privileges} ON `{db_name}`.* TO '{db_name}'@'%'; FLUSH PRIVILEGES;"]
|
command = mysql_command + [f"GRANT {grant_privileges} ON `{db_name}`.* TO '{db_name}'@'%'; FLUSH PRIVILEGES;"]
|
||||||
|
Loading…
Reference in New Issue
Block a user