Skip to content

Commit 4b44f86

Browse files
committed
fix: change oriole builds to use pg_ctl instead of initdb
initdb binary seems to be not on the path on the qemu builds, and there doesn't seem to be a reason to use it directly vs using pg_ctl, which we already do for pg15.
1 parent 9fcad09 commit 4b44f86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: ansible/tasks/setup-postgres.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@
239239
become: yes
240240
become_user: postgres
241241
shell: >
242-
source /var/lib/postgresql/.bashrc && initdb -D /var/lib/postgresql/data
243-
--allow-group-access
244-
--username=supabase_admin
245-
--locale-provider=icu
246-
--encoding=UTF-8
247-
--icu-locale=en_US.UTF-8
242+
source /var/lib/postgresql/.bashrc && /usr/lib/postgresql/bin/pg_ctl -D /var/lib/postgresql/data initdb
243+
-o "--allow-group-access"
244+
-o "--username=supabase_admin"
245+
-o "--locale-provider=icu"
246+
-o "--encoding=UTF-8"
247+
-o "--icu-locale=en_US.UTF-8"
248248
args:
249249
executable: /bin/bash
250250
environment:

0 commit comments

Comments
 (0)