use gitlab_data_dir variable instead of gitlab_home

This commit is contained in:
Praveen Arimbrathodiyil 2016-10-01 16:37:22 +05:30
parent d6bd3b07be
commit a04ef9fcd0

View file

@ -13,7 +13,7 @@ if [ "$(LANG=C su postgres -c "psql gitlab_production -c \"\d\"")" = \
echo "Initializing database..." echo "Initializing database..."
test -f ${gitlab_home}/db/schema.rb || \ test -f ${gitlab_home}/db/schema.rb || \
su ${gitlab_user} -s /bin/sh -c\ 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: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 db:seed_fu'
else else