Commit aff31825 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Allow connections to PostgreSQL from remote hosts with password

parent dced2720
......@@ -35,6 +35,7 @@ all: postgresql-service
install -v -dm755 /run/postgresql
chown -Rv postgres:postgres /srv/pgsql /run/postgresql
su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'
echo "host all all 0.0.0.0/0 scram-sha-256" >> /srv/pgsql/data/pg_hba.conf
@echo "d /run/postgresql 0775 postgres postgres -" > /usr/lib/tmpfiles.d/postgresql.conf
@echo "$$POSTGRESQL_SERVICE" > /lib/systemd/system/postgresql.service
systemctl enable postgresql.service
......
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