File tree 1 file changed +3
-1
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ cleanup() {
72
72
if [ -d " ${MOUNT_POINT} /pgdata/pg_upgrade_output.d/" ]; then
73
73
echo " Copying pg_upgrade output to /var/log"
74
74
cp -R " ${MOUNT_POINT} /pgdata/pg_upgrade_output.d/" /var/log/ || true
75
+ chown -R postgres:postgres /var/log/pg_upgrade_output.d/
76
+ chmod -R 0750 /var/log/pg_upgrade_output.d/
75
77
ship_logs " $LOG_FILE " || true
76
78
tail -n +1 /var/log/pg_upgrade_output.d/* /* > /var/log/pg_upgrade_output.d/pg_upgrade.log || true
77
79
ship_logs " /var/log/pg_upgrade_output.d/pg_upgrade.log" || true
@@ -298,7 +300,7 @@ function initiate_upgrade {
298
300
--new-bindir=${PGBINNEW} \
299
301
--old-datadir=${PGDATAOLD} \
300
302
--new-datadir=${PGDATANEW} \
301
- --jobs="${WORKERS} " \
303
+ --jobs="${WORKERS} " -r \
302
304
--old-options='-c config_file=${POSTGRES_CONFIG_PATH} ' \
303
305
--old-options="-c shared_preload_libraries='${SHARED_PRELOAD_LIBRARIES} '" \
304
306
--new-options="-c data_directory=${PGDATANEW} " \
You can’t perform that action at this time.
0 commit comments