[Service]
Environment=
Environment=PGPORT=<%= node['postgresql']['config']['port'] %>
Environment=PGDATA=<%= node['postgresql']['config']['data_directory'] %>

.include /usr/lib/systemd/system/postgresql.service
[Service]
Environment=
Environment=PGPORT=<%= node['postgresql']['config']['port'] %>
Environment=PGDATA=<%= node['postgresql']['config']['data_directory'] %>

Include the original unit file in the override otherwise systemd complains about missing variables
Include the original unit file in the override otherwise systemd complains about missing variables
