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