Skip to content

Commit

Permalink
Updated database.py to wrap password for init script in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnmag committed Mar 4, 2015
1 parent 7f8fb5c commit 3fcf5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio/base/scripts/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def init(user='root', password='', yes_i_know=False):
# Create user and grant access to database.
(cmd_prefix + '-e "GRANT ALL PRIVILEGES ON '
'{CFG_DATABASE_NAME}.* TO {CFG_DATABASE_USER}@localhost '
'IDENTIFIED BY {CFG_DATABASE_PASS}"'),
'IDENTIFIED BY \'{CFG_DATABASE_PASS}\'"'),
cmd_admin_prefix + 'flush-privileges'
]
for cmd in cmds:
Expand Down

0 comments on commit 3fcf5df

Please sign in to comment.