fix: add init cluster
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user