2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 18:48:58 +00:00

Merge pull request #219 from revant/fix-commands

fix: commands
This commit is contained in:
Revant Nandgaonkar 2020-04-29 14:05:43 +05:30 committed by GitHub
commit e80071f1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -42,8 +42,8 @@ def migrate_sites(maintenance_mode=False):
finally:
frappe.destroy()
if maintenance_mode:
set_maintenance_mode(False)
# Disable maintenance mode after migration
set_maintenance_mode(False)
def main():

View File

@ -66,7 +66,7 @@ def main():
os.system(command)
# Set db password
command = mysql_command + "\"UPDATE mysql.user SET authentication_string = PASSWORD('{db_password}') WHERE User = \'{db_name}\' AND Host = \'%\';\"".format(
command = mysql_command + "\"ALTER USER '{db_name}'@'%' IDENTIFIED BY '{db_password}'; FLUSH PRIVILEGES;\"".format(
db_name=site_config.get('db_name'),
db_password=site_config.get('db_password')
)