init: execute gitlab:satellites:create rake task before starting gitlab

This commit is contained in:
Sameer Naik 2014-10-10 23:46:53 +05:30
parent 3bcfb5823f
commit 686162011c

View File

@ -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