[29353] Unescape DATABASE_URL password before backup

https://community.openproject.com/wp/29353

[ci skip]
pull/6972/head
Oliver Günther 6 years ago
parent e468a686df
commit 060bb27089
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  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