Merge pull request #2017 from duksis/backup_restore
bugfix: backup data retrieved with the same type keys as saved
This commit is contained in:
commit
10ec9b2293
2 changed files with 47 additions and 1 deletions
|
@ -82,7 +82,7 @@ namespace :gitlab do
|
|||
end
|
||||
|
||||
settings = YAML.load_file("backup_information.yml")
|
||||
ENV["VERSION"] = "#{settings["db_version"]}" if settings["db_version"].to_i > 0
|
||||
ENV["VERSION"] = "#{settings[:db_version]}" if settings[:db_version].to_i > 0
|
||||
|
||||
# restoring mismatching backups can lead to unexpected problems
|
||||
if settings[:gitlab_version] != %x{git rev-parse HEAD}.gsub(/\n/,"")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue