Commit ad3abd1d authored by Stan Hu's avatar Stan Hu

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
parent 1cffafbf
---
title: Silence backup warnings when CRON=1 in use
merge_request: 30033
author:
type: fixed
...@@ -21,10 +21,10 @@ namespace :gitlab do ...@@ -21,10 +21,10 @@ namespace :gitlab do
backup.cleanup backup.cleanup
backup.remove_old 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" \ "and are not included in this backup. You will need these files to restore a backup.\n" \
"Please back them up manually.".color(:red) "Please back them up manually.".color(:red)
puts "Backup task is done." progress.puts "Backup task is done."
end end
# Restore backup of GitLab system # Restore backup of GitLab system
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment