Skip to content

Commit 43bd138

Browse files
committed
fix(setup-postgres): create the symlink for stage2 as well
1 parent ba26e58 commit 43bd138

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@
182182
- stage2_nix
183183

184184
# init DB
185-
- name: init the db when (debpkg_mode or nixpkg_mode)
185+
- name: init the db when (debpkg_mode or nixpkg_mode or stage2_nix)
186186
when:
187-
- (debpkg_mode or nixpkg_mode)
187+
- (debpkg_mode or nixpkg_mode or stage2_nix)
188188
block:
189189
- name: Create directory on data volume
190190
ansible.builtin.file:
@@ -208,7 +208,8 @@
208208
ansible.builtin.command:
209209
argv:
210210
- /usr/lib/postgresql/bin/pg_ctl
211-
- -D /var/lib/postgresql/data initdb
211+
- -D /var/lib/postgresql/data
212+
- initdb
212213
- -o "--allow-group-access"
213214
- -o "--username=supabase_admin"
214215
vars:
@@ -262,7 +263,8 @@
262263
ansible.builtin.command:
263264
argv:
264265
- /usr/lib/postgresql/bin/pg_ctl
265-
- -D /var/lib/postgresql/data initdb
266+
- -D /var/lib/postgresql/data
267+
- initdb
266268
- -o "--allow-group-access"
267269
- -o "--username=supabase_admin"
268270
- -o "--locale-provider=icu"

0 commit comments

Comments
 (0)