fix postgres cluster not starting automatically (#4516)

This commit is contained in:
openoms 2024-04-03 19:56:17 +02:00 committed by GitHub
parent b34186ff0c
commit ba88e6e17c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,7 @@ if [ "$command" = "1" ] || [ "$command" = "on" ]; then
# start cluster # start cluster
sudo systemctl enable --now postgresql sudo systemctl enable --now postgresql
sudo systemctl enable --now postgresql@$PG_VERSION-main
# check if PostgreSQL was installed # check if PostgreSQL was installed
if psql --version; then if psql --version; then