fix: add init cluster
All checks were successful
Continuous Delivery / build_n_upload (push) Successful in 39s

This commit is contained in:
2026-04-04 07:20:48 +02:00
parent 277a540d94
commit 36d936f5de

View File

@@ -25,6 +25,9 @@ Install the database management system called postgresql with a predefined confi
# Create sock directory if not existing
chown postgres:postgres "%{_rundir}/postgresql"
# Init cluster if necessary
runuser --user=postgres -- if [ ! -d $PGDATA ]; then postgresql-setup --initdb; fi
# Restart services
systemctl daemon-reload
systemctl reenable postgresql.service