Fix postgres installation

Also, do not start at boot anymore, in favor of path-based activation.
This commit is contained in:
2020-06-07 12:47:06 +02:00
parent 353f2c13f1
commit 379161eb1e
2 changed files with 18 additions and 15 deletions

View File

@@ -27,13 +27,13 @@
postgresql_version = "12"
postgresql_service = "postgresql@#{postgresql_version}-main"
postgresql_custom_server postgresql_version do
role "primary"
# TODO check if still necessary
user "postgres" do
manage_home false
end
service postgresql_service do
supports restart: true, status: true, reload: true
action [:enable]
postgresql_custom_server postgresql_version do
role "primary"
end
# This will only be run once, if the /var/lib/postgresql/10/main directory