Skip to content

Commit d2d3029

Browse files
committed
fix(setup-postgres): use the nix path
1 parent ab22ce1 commit d2d3029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
become: true
205205
become_user: 'postgres'
206206
ansible.builtin.command:
207-
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin"
207+
cmd: /var/lib/postgresql/.nix-profile/bin/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin"
208208
vars:
209209
ansible_command_timeout: 60
210210
when:
@@ -232,7 +232,7 @@
232232
become: true
233233
become_user: 'postgres'
234234
ansible.builtin.command:
235-
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin
235+
cmd: /var/lib/postgresql/.nix-profile/bin/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin
236236
environment:
237237
LANG: en_US.UTF-8
238238
LANGUAGE: en_US.UTF-8
@@ -249,7 +249,7 @@
249249
become: true
250250
become_user: 'postgres'
251251
ansible.builtin.command:
252-
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin --locale-provider=icu --encoding=UTF-8 --icu-locale=en_US.UTF-8
252+
cmd: /var/lib/postgresql/.nix-profile/bin/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin --locale-provider=icu --encoding=UTF-8 --icu-locale=en_US.UTF-8
253253
environment:
254254
LANG: en_US.UTF-8
255255
LANGUAGE: en_US.UTF-8

0 commit comments

Comments
 (0)