Skip to content

Commit 7925a56

Browse files
committed
chore: check that refs are removed
1 parent 838f9ce commit 7925a56

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

ansible/tasks/test-image.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,22 @@
2222
-e 's/pgsodium.getkey_script=/#pgsodium.getkey_script=/'
2323
/etc/postgresql/postgresql.conf
2424
when: debpkg_mode or stage2_nix
25-
25+
26+
- name: Verify pgsodium and vault removal from config
27+
become: yes
28+
become_user: postgres
29+
shell:
30+
cmd: |
31+
FOUND=$(grep -E "shared_preload_libraries.*pgsodium|shared_preload_libraries.*supabase_vault|^pgsodium\.getkey_script" /etc/postgresql/postgresql.conf)
32+
if [ ! -z "$FOUND" ]; then
33+
echo "Found unremoved references:"
34+
echo "$FOUND"
35+
exit 1
36+
fi
37+
register: verify_result
38+
failed_when: verify_result.rc != 0
39+
when: debpkg_mode or stage2_nix
40+
2641
- name: Start Postgres Database to load all extensions.
2742
become: yes
2843
become_user: postgres

0 commit comments

Comments
 (0)