r/wal-g-pg: Run wal-g backup as postgres
`wal-g` needs to connect to the PostgreSQL database system, so it should run as the _postgres_ user, who has permission to connect, rather than _root_, who does not.frigate-exporter
parent
ab5da58175
commit
2e37fce4f6
|
@ -7,3 +7,4 @@ After=network-online.target
|
|||
Type=oneshot
|
||||
Environment=PGDATA=/var/lib/pgsql/data
|
||||
ExecStart=/usr/bin/wal-g-pg backup-push --config /etc/postgresql/wal-g.yml $PGDATA
|
||||
User=postgres
|
||||
|
|
Loading…
Reference in New Issue