Merge pull request #6972 from opf/fix/29353/backup-unescape

[29353] Unescape DATABASE_URL password before backup

[ci skip]
pull/6990/head
Oliver Günther 6 years ago committed by GitHub
commit d1645a65f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packaging/scripts/backup

@ -25,10 +25,11 @@ dump_mysql() {
ruby -ruri -rcgi -e '
uri = URI(ENV["DATABASE_URL"])
password = CGI.unescape(uri.password || "")
params = CGI.parse(uri.query || "")
config=<<CONFIG
[client]
password="#{uri.password}"
password="#{password}"
user="#{uri.user}"
host="#{uri.host}"
port="#{uri.port}"

Loading…
Cancel
Save