Fix missing arguments when PostgreSQL upgrade times out

This is a small regression from
https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7247.
When the PostgreSQL upgrade times out, previously the script
would error out with `wrong number of arguments (given 0, expected 1)
(ArgumentError)`.

Changelog: fixed
This commit is contained in:
Stan Hu 2024-04-19 23:15:08 -07:00
parent 4334402cad
commit 39fa902e77
No known key found for this signature in database
GPG Key ID: 8D3931AD39CC7A20
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ module GitlabCtl
log "STDERR: #{e.stderr}"
false
rescue Mixlib::ShellOut::CommandTimeout
log
log ""
log "Timed out during the database upgrade.".color(:red)
log "To run with more time, remove the temporary directory #{tmp_data_dir}.#{target_version.major},".color(:red)
log "then re-run your previous command, adding the --timeout option.".color(:red)