From 686162011c524a0eb077968d4f925d7244366a60 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Fri, 10 Oct 2014 23:46:53 +0530 Subject: [PATCH] init: execute `gitlab:satellites:create` rake task before starting gitlab --- assets/init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/init b/assets/init index fbf6c72b..ec7d9ec9 100755 --- a/assets/init +++ b/assets/init @@ -668,11 +668,14 @@ appStart () { rm -rf tmp/pids/unicorn.pid rm -rf tmp/pids/sidekiq.pid + # create satellite directories + echo "Creating satellites..." + sudo -u git -H bundle exec rake gitlab:satellites:create RAILS_ENV=production >/dev/null + # start the gitlab application sudo -u git -H /etc/init.d/gitlab start - # create satellite directories - sudo -u git -H bundle exec rake gitlab:satellites:create RAILS_ENV=production + # perform status check sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production # setup cron job for automatic backups