From a04ef9fcd02dcbb62ff81572abb8adecf5ea5bb1 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Sat, 1 Oct 2016 16:37:22 +0530 Subject: [PATCH] use gitlab_data_dir variable instead of gitlab_home --- debian/rake-tasks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index 96982bf718..94631968d6 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -13,7 +13,7 @@ if [ "$(LANG=C su postgres -c "psql gitlab_production -c \"\d\"")" = \ echo "Initializing database..." test -f ${gitlab_home}/db/schema.rb || \ su ${gitlab_user} -s /bin/sh -c\ - "cp ${gitlab_home}/db/schema.rb.template ${gitlab_home}/db/schema.rb" + "cp ${gitlab_data_dir}/db/schema.rb.template ${gitlab_data_dir}/db/schema.rb" 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' else