single quote password in restore command

> Followup to #3283. Quotes passwords passed to shell for backup restore.
This commit is contained in:
Will Jordan 2018-03-01 12:08:35 -08:00
parent 80e85e0d8f
commit a41446a502
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ module BackupRestore
def psql_command
db_conf = BackupRestore.database_configuration
password_argument = "PGPASSWORD=#{db_conf.password}" if db_conf.password.present?
password_argument = "PGPASSWORD='#{db_conf.password}'" if db_conf.password.present?
host_argument = "--host=#{db_conf.host}" if db_conf.host.present?
port_argument = "--port=#{db_conf.port}" if db_conf.port.present?
username_argument = "--username=#{db_conf.username}" if db_conf.username.present?