Commit e4fa721
committed
fix: set data_directory to canonical path to resolve pgBackRest [058]
pgBackRest stanza-create compares the live cluster's data_directory
against the DataDir stored in pg_control. initdb resolves symlinks
internally so pg_control stores /data/pgdata, but postgresql.conf
explicitly set data_directory to /var/lib/postgresql/data (the symlink),
causing a path mismatch and [058] error on every enable attempt.
Patch data_directory to /data/pgdata immediately after deploying the
postgresql.conf template, scoped to the debpkg_mode/nixpkg_mode block
where the /data volume and symlink are always present. Docker images and
Nix test environments are unaffected as they do not use this Ansible path.1 parent 3075114 commit e4fa721
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
0 commit comments