Commit dd996bd1 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initialize database

parent 017527e5
......@@ -25,3 +25,8 @@ all:
tar xf gitlab-foss-v13.1.0.tar.bz2
mv gitlab-foss-v13.1.0/* /srv/www
rm -rf /srv/www/index.html
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;"
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