Commit 7c743295 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Separate installation into two phases: packages and database

parent 604043d1
......@@ -25,6 +25,9 @@ all:
tar xf gitlab-foss-v13.1.0.tar.bz2 -C /srv/www --strip-components=1
rm -rf /srv/www/index.html
cd /srv/www && HOME="/tmp" && bundle install --deployment --without development test mysql aws kerberos
postinstall:
install -v -m775 -o postgres -g postgres -d /run/postgresql
sudo -u postgres /usr/bin/pg_ctl -s -D /srv/pgsql/data start -w -t 120
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
......@@ -32,5 +35,3 @@ all:
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;"
sudo -u postgres /usr/bin/pg_ctl -s -D /srv/pgsql/data stop -m fast
cd /srv/www && HOME="/tmp" && 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