Commit ad2afb909ab847f23a23fb069e5949833f3a9eba

Authored by Gustavo Duarte
1 parent 4d3b2574
Exists in master

Pass force=yes to the backup:restore rake task

This avoids the restore process to ask for user confirmation during the backup restore.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
provision.sh
... ... @@ -148,7 +148,7 @@ if [[ -e $backup ]]; then
148 148 printf "Movendo backup para diretório correto"
149 149 install -D -m 755 -o git -g git $backup /var/lib/gitlab/backups
150 150 cd /usr/lib/gitlab
151   - sudo -u yes | git bundle exec rake gitlab:backup:restore RAILS_ENV=production
  151 + sudo -u git bundle exec rake gitlab:backup:restore RAILS_ENV=production force=yes
152 152 else
153 153 printf "Backup não encontrado"
154 154 fi
... ...