Commit 05c59ac2 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should use pg_ctl instead of systemd to start up postgres during installation

parent af81e8cb
......@@ -26,11 +26,11 @@ all:
mv gitlab-foss-v13.1.0/* /srv/www
rm -rf /srv/www/index.html
systemctl start 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;"
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
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