Skip to content

Commit 59b44b6

Browse files
committed
fix: try a more universal way to deactivate pgsodium at this stage
1 parent c08b661 commit 59b44b6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

ansible/tasks/test-image.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@
44
- libtap-parser-sourcehandler-pgtap-perl
55
when: debpkg_mode
66

7+
# - name: Temporarily disable PG Sodium references in config
8+
# become: yes
9+
# become_user: postgres
10+
# shell:
11+
# 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
12+
# when: debpkg_mode or stage2_nix
13+
714
- name: Temporarily disable PG Sodium references in config
815
become: yes
916
become_user: postgres
1017
shell:
11-
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
18+
cmd: >
19+
sed -i.bak
20+
-e 's/\(shared_preload_libraries = '\''.*\)pgsodium,\(.*'\''\)/\1\2/'
21+
-e 's/pgsodium.getkey_script=/#pgsodium.getkey_script=/'
22+
/etc/postgresql/postgresql.conf
1223
when: debpkg_mode or stage2_nix
1324

1425
- name: Start Postgres Database to load all extensions.

0 commit comments

Comments
 (0)