Having two data folder in my postgresql setup- Postgresql
On a terminal, type

systemctl cat 'postgresql*'


That will show you where the PGDATA environment variable is pointing to when you start the service normally via systemd, and all the parameters used for starting and stopping the service.