[Service] {% if postgresql_config_dir != pgdata_dir %} Environment=PGDATA={{ postgresql_config_dir }} # The postgresql-check-db-dir script doesn't work with separate config # and data directories. It's pointless, anyway. ExecStartPre= {% endif %}