diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-25 00:07:37 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-25 16:30:51 +0300 |
commit | ad3abd1d3ad5ae91596cc89671a93d49af9fc9ab (patch) | |
tree | b610ac7b43c969bad913c1bbd0c6241b1e3ea36e /lib | |
parent | 1cffafbfd474cc34573cf136225693ebdd5c2efc (diff) |
Silence backup warnings when CRON=1 in use
If CRON=1 is in use, we shouldn't generate any output or admins may be
notified via e-mail about unnecessary warnings.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63703
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/backup.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake index c531eb1d216..2bf71701b57 100644 --- a/lib/tasks/gitlab/backup.rake +++ b/lib/tasks/gitlab/backup.rake @@ -21,10 +21,10 @@ namespace :gitlab do backup.cleanup backup.remove_old - puts "Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data \n" \ + progress.puts "Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data \n" \ "and are not included in this backup. You will need these files to restore a backup.\n" \ "Please back them up manually.".color(:red) - puts "Backup task is done." + progress.puts "Backup task is done." end # Restore backup of GitLab system |