fix: add init cluster
All checks were successful
Continuous Delivery / build_n_upload (push) Successful in 39s
All checks were successful
Continuous Delivery / build_n_upload (push) Successful in 39s
This commit is contained in:
@@ -25,6 +25,9 @@ Install the database management system called postgresql with a predefined confi
|
|||||||
# Create sock directory if not existing
|
# Create sock directory if not existing
|
||||||
chown postgres:postgres "%{_rundir}/postgresql"
|
chown postgres:postgres "%{_rundir}/postgresql"
|
||||||
|
|
||||||
|
# Init cluster if necessary
|
||||||
|
runuser --user=postgres -- if [ ! -d $PGDATA ]; then postgresql-setup --initdb; fi
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl reenable postgresql.service
|
systemctl reenable postgresql.service
|
||||||
|
|||||||
Reference in New Issue
Block a user