From 96f4d51335b0fdfde1ed91074fec6fb731acd4d4 Mon Sep 17 00:00:00 2001 From: Kai Wagner Date: Tue, 19 Nov 2024 13:58:55 +0100 Subject: [PATCH] Update pg-easy-deploy.sh - change location of keyring Change the location of the keyring, so it survives a reboot --- pg-easy-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg-easy-deploy.sh b/pg-easy-deploy.sh index d3a0bc6..5aca9b0 100755 --- a/pg-easy-deploy.sh +++ b/pg-easy-deploy.sh @@ -127,7 +127,7 @@ database_and_table_create() { fi sudo -u postgres psql -U postgres -c "CREATE DATABASE $DATABASE WITH OWNER=postgres;" sudo -u postgres psql -U postgres -d $DATABASE -c "CREATE EXTENSION pg_tde;" - sudo -u postgres psql -U postgres -d $DATABASE -c "SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');" + sudo -u postgres psql -U postgres -d $DATABASE -c "SELECT pg_tde_add_key_provider_file('file-vault','/var/lib/pgsql/pg_tde_test_keyring.per');" sudo -u postgres psql -U postgres -d $DATABASE -c "SELECT pg_tde_set_principal_key('test-db-master-key','file-vault');" sudo -u postgres psql -U postgres -d $DATABASE -c "ALTER DATABASE $DATABASE SET default_table_access_method='tde_heap';" sudo -u postgres psql -U postgres -c "SELECT pg_reload_conf();"