Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 25b9b02df2 | |||
| 2c39bf1158 |
@@ -26,7 +26,7 @@ Install the database management system called postgresql with a predefined confi
|
|||||||
chown postgres:postgres "%{_rundir}/postgresql"
|
chown postgres:postgres "%{_rundir}/postgresql"
|
||||||
|
|
||||||
# Init cluster if necessary
|
# Init cluster if necessary
|
||||||
runuser --user=postgres -- if [ ! -d $PGDATA ]; then postgresql-setup --initdb; fi
|
runuser --user=postgres -- [ -f $PGDATA/PG_VERSION ] || postgresql-setup --initdb
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user