Skip to content

Commit de68fda

Browse files
committed
tmp
1 parent 946e4ff commit de68fda

File tree

1 file changed

+7
-0
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+7
-0
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/complete.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ EOF
173173
FROM UNNEST(server_rec.srvoptions) AS srvoption
174174
LOOP
175175
IF EXISTS (SELECT FROM vault.secrets WHERE option_rec.option_value IN (id::text, key_id::text)) THEN
176+
RAISE WARNING '%', format(
177+
'ALTER SERVER %I OPTIONS (SET %I %L)',
178+
server_rec.srvname,
179+
option_rec.option_name,
180+
(SELECT id FROM vault.secrets WHERE option_rec.option_value IN (id::text, key_id::text))
181+
);
176182
EXECUTE format(
177183
'ALTER SERVER %I OPTIONS (SET %I %L)',
178184
server_rec.srvname,
@@ -225,6 +231,7 @@ EOF
225231
EOF
226232
)
227233
run_sql -c "$REENCRYPT_VAULT_SECRETS_QUERY"
234+
exit 1
228235

229236
run_sql -c "grant pg_read_all_data, pg_signal_backend to postgres"
230237
}

0 commit comments

Comments
 (0)