Service startup error when try to start standby server in Postgresql Master / Slave replication.

May 04 01:13:45 test2.sys.local postmaster[9591]: 2020-05-04 01:13:45.476 +03 [9591] FATAL: data directory “/database/data” has wrong ownership
May 04 01:13:45 test2.sys.local postmaster[9591]: 2020-05-04 01:13:45.476 +03 [9591] HINT: The server must be started by the user that owns the data dire
May 04 01:13:45 test2.sys.local systemd[1]: postgresql-12.service: main process exited, code=exited, status=1/FAILURE
May 04 01:13:45 test2.sys.local systemd[1]: Failed to start PostgreSQL 12 database server.
— Subject: Unit postgresql-12.service has failed


Solution :