Commit 604043d1 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

PostgreSQL needs run directory to start

parent 05c59ac2
...@@ -22,10 +22,10 @@ all: ...@@ -22,10 +22,10 @@ all:
mv -v /etc/gshadow /data/etc/gshadow mv -v /etc/gshadow /data/etc/gshadow
ln -sv /data/etc/gshadow /etc/gshadow ln -sv /data/etc/gshadow /etc/gshadow
tar xf gitlab-foss-v13.1.0.tar.bz2 tar xf gitlab-foss-v13.1.0.tar.bz2 -C /srv/www --strip-components=1
mv gitlab-foss-v13.1.0/* /srv/www
rm -rf /srv/www/index.html rm -rf /srv/www/index.html
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 /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 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 pg_trgm;"
......
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