Skip to content

Commit cf720c2

Browse files
authored
Revert "chore: also deactivate supabase_vault in test (#1439)"
This reverts commit 1559c2d.
1 parent 1559c2d commit cf720c2

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

ansible/tasks/test-image.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,17 @@
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 references in config
1515
become: yes
1616
become_user: postgres
1717
shell:
1818
cmd: >
19-
sed -i.bak
20-
-e 's/\(shared_preload_libraries = '\''.*\)pgsodium,\(.*'\''\)/\1\2/'
21-
-e 's/\(shared_preload_libraries = '\''.*\)supabase_vault,\(.*'\''\)/\1\2/'
22-
-e 's/\(shared_preload_libraries = '\''.*\), *supabase_vault'\''/\1'\''/'
19+
sed -i.bak
20+
-e 's/\(shared_preload_libraries = '\''.*\)pgsodium,\(.*'\''\)/\1\2/'
2321
-e 's/pgsodium.getkey_script=/#pgsodium.getkey_script=/'
2422
/etc/postgresql/postgresql.conf
2523
when: debpkg_mode or stage2_nix
2624

27-
- name: Verify pgsodium and vault removal from config
28-
become: yes
29-
become_user: postgres
30-
shell:
31-
cmd: |
32-
FOUND=$(grep -E "shared_preload_libraries.*pgsodium|shared_preload_libraries.*supabase_vault|^pgsodium\.getkey_script" /etc/postgresql/postgresql.conf)
33-
if [ ! -z "$FOUND" ]; then
34-
echo "Found unremoved references:"
35-
echo "$FOUND"
36-
exit 1
37-
fi
38-
register: verify_result
39-
failed_when: verify_result.rc != 0
40-
when: debpkg_mode or stage2_nix
41-
4225
- name: Start Postgres Database to load all extensions.
4326
become: yes
4427
become_user: postgres

0 commit comments

Comments
 (0)