Skip to content

Commit

Permalink
Update pg-easy-deploy.sh - change location of keyring
Browse files Browse the repository at this point in the history
Change the location of the keyring, so it survives a reboot
  • Loading branch information
ImTheKai committed Nov 19, 2024
1 parent 7421990 commit 96f4d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg-easy-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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();"
Expand Down

0 comments on commit 96f4d51

Please sign in to comment.