Failure to install postgresql
Hi everyone!
I was installing the postgresql package and received the following error
(1/2) Creating system user accounts...
(2/2) Creating temporary files...
chown: invalid user: ‘postgres’
chgrp: invalid group: ‘postgres’
chattr: Operation not supported while setting flags on /var/lib/postgres/data
error: command failed to execute correctly
Looking into it I think the sysusers hook failed to correctly create a postgres user. I tried to use the sysusers utility on the created file /usr/lib/sysusers.d/postgresql.conf but this didn't create the user either. I was wondering if there was a known but in opensysusers.
Here is what that file (postgresql.conf) looks like
u postgres - "PostgreSQL user" /var/lib/postgres /bin/bash
Thanks!!