Skip to content

Commit 2a3607d

Browse files
committed
chore: add a pattern for when vault at end of line
1 parent 7925a56 commit 2a3607d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ansible/tasks/test-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
# cmd: sed -i.bak -e "s/pg_net,\ pgsodium,\ timescaledb/pg_net,\ timescaledb/g" -e "s/pgsodium.getkey_script=/#pgsodium.getkey_script=/g" /etc/postgresql/postgresql.conf
1212
# when: debpkg_mode or stage2_nix
1313

14-
- name: Temporarily disable PG Sodium and Supabase Vault references in config
14+
-- name: Temporarily disable PG Sodium and Supabase Vault references in config
1515
become: yes
1616
become_user: postgres
1717
shell:
1818
cmd: >
1919
sed -i.bak
2020
-e 's/\(shared_preload_libraries = '\''.*\)pgsodium,\(.*'\''\)/\1\2/'
2121
-e 's/\(shared_preload_libraries = '\''.*\)supabase_vault,\(.*'\''\)/\1\2/'
22-
-e 's/pgsodium.getkey_script=/#pgsodium.getkey_script=/'
22+
-e 's/\(shared_preload_libraries = '\''.*\), *supabase_vault'\''/\1'\''/'
23+
-e 's/pgsodium.getkey_script=/#pgsodium.getkey_script=/'
2324
/etc/postgresql/postgresql.conf
2425
when: debpkg_mode or stage2_nix
2526

0 commit comments

Comments
 (0)