diff --git a/netoik-db.spec b/netoik-db.spec index 8a1306a..d99c1fa 100644 --- a/netoik-db.spec +++ b/netoik-db.spec @@ -26,7 +26,7 @@ Install the database management system called postgresql with a predefined confi chown postgres:postgres "%{_rundir}/postgresql" # Init cluster if necessary -runuser --user=postgres -- if [ ! -f $PGDATA/PG_VERSION ]; then postgresql-setup --initdb; fi +runuser --user=postgres -- [ -f $PGDATA/PG_VERSION ] || postgresql-setup --initdb # Restart services systemctl daemon-reload