use gitlab_data_dir variable instead of gitlab_home
This commit is contained in:
parent
d6bd3b07be
commit
a04ef9fcd0
1 changed files with 1 additions and 1 deletions
2
debian/rake-tasks.sh
vendored
2
debian/rake-tasks.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue