Skip to content

Commit 3075114

Browse files
committed
fix: run pgBackRest directory and log file setup in stage2_nix pass
The directory and log file creation tasks were gated on nixpkg_mode only, so they were skipped during the stage 2 Nix provision pass (nixpkg_mode=false, stage2_nix=true). SAA is installed in stage 2 but had no log directory or pre-created log files to write to, causing pgbackrest enable to fail immediately. Extend both conditions to nixpkg_mode or stage2_nix so the paths are created in whichever pass installs the software.
1 parent 4e6d508 commit 3075114

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/tasks/setup-pgbackrest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
loop_control:
6464
loop_var: backrest_dir
6565
when:
66-
- nixpkg_mode
66+
- nixpkg_mode or stage2_nix
6767

6868
# supabase-admin-agent opens these log files with O_APPEND|O_WRONLY (no
6969
# O_CREATE). They must exist before SAA runs; a missing file causes the
@@ -83,7 +83,7 @@
8383
- /var/log/pgbackrest/wal-push.log
8484
- /var/log/pgbackrest/wal-fetch.log
8585
when:
86-
- nixpkg_mode
86+
- nixpkg_mode or stage2_nix
8787

8888
- name: Symlink pgbackrest.conf
8989
ansible.legacy.file:

0 commit comments

Comments
 (0)