[DRE-commits] [gitlab] 01/03: replace gitlab:setup with db:schema:load

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Mar 14 18:19:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository gitlab.

commit 6e9439278417e4ba2ed09f646fad8fde4d136d33
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon Mar 14 18:58:24 2016 +0530

    replace gitlab:setup with db:schema:load
---
 debian/changelog     |  3 +++
 debian/rake-tasks.sh | 15 +++++----------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e7d9781..11decb8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ gitlab (8.4.3+dfsg-10) UNRELEASED; urgency=medium
   * Fix typo in debian/README.Debian.
   * 0038-relax-net-ssh.patch : Add dep3 header.
 
+  [ Pirate Praveen ]
+  * Replace gitlab:setup with db:schema:load and db:seed_fu (Closes: #815798)
+
  -- Balasankar C <balasankarc at autistici.org>  Sun, 28 Feb 2016 22:43:02 +0530
 
 gitlab (8.4.3+dfsg-9) unstable; urgency=medium
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index b6e2572..0f60663 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -18,16 +18,11 @@ if ! [ -f "${gitlab_app_root}/config/secrets.yml" ]; then
   }
 fi
 echo "Initializing database..."
-if [ "$(su postgres -c 'psql gitlab_production -c \\d')" = \
-"No relations found." ]; then
-  su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:setup \
-  RAILS_ENV=production force=yes'
-  su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install \
-  REDIS_URL=redis://localhost:6379 \
-  SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
-else
-  echo "gitlab_production database is not empty, skipping gitlab setup"
-fi
+su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:schema:load'
+su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:seed_fu'
+su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:shell:install \
+REDIS_URL=redis://localhost:6379 \
+SHELL_ROOT_PATH=/usr/share/gitlab-shell RAILS_ENV=production'
 
 echo "Precompiling assets..."
 su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git



More information about the Pkg-ruby-extras-commits mailing list