The postgres user doesn't have $PGDATA (or other environment variables) set by default. This constitutes a big foot gun. It also makes it hard to fix the startup script, which is pretty braindead. Bug report follows on this.
Fixed with last bump