File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -260,13 +260,14 @@ function complete_pg_upgrade {
260
260
execute_extension_upgrade_patches || true
261
261
262
262
echo " 4. Running generated SQL files"
263
+ echo " before"
263
264
retry 3 print_vault_secrets
264
265
retry 3 run_generated_sql
266
+ echo " after"
267
+ retry 3 print_vault_secrets
265
268
266
269
echo " 4.1. Applying patches"
267
- retry 3 print_vault_secrets
268
270
execute_patches || true
269
- retry 3 print_vault_secrets
270
271
271
272
run_sql -c " ALTER USER postgres WITH NOSUPERUSER;"
272
273
@@ -302,6 +303,8 @@ function run_generated_sql {
302
303
if [ -d /data/sql ]; then
303
304
for FILE in /data/sql/* .sql; do
304
305
if [ -f " $FILE " ]; then
306
+ echo " executing $FILE "
307
+ cat " $FILE "
305
308
run_sql -f " $FILE " || true
306
309
fi
307
310
done
You can’t perform that action at this time.
0 commit comments