Commit fa81133e authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Start PostgreSQL before database initialization

parent 396188c5
......@@ -26,9 +26,11 @@ all:
mv gitlab-foss-v13.1.0/* /srv/www
rm -rf /srv/www/index.html
systemctl start postgresql
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS btree_gist;"
sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;"
systemctl stop postgresql
cd /srv/www && bundle install --deployment --without development test mysql aws kerberos
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment