Skip to content

Commit 07f2492

Browse files
committed
chore: Run in background
1 parent f5671d4 commit 07f2492

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ansible/files/admin_api_scripts/pg_upgrade_initiate.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function initiate_upgrade {
9090

9191
mkdir -p "$MOUNT_POINT"
9292
mount "$BLOCK_DEVICE" "$MOUNT_POINT"
93+
resize2fs "$BLOCK_DEVICE"
9394

9495
SHARED_PRELOAD_LIBRARIES=$(cat /etc/postgresql/postgresql.conf | grep shared_preload_libraries | sed "s/shared_preload_libraries = '\(.*\)'.*/\1/")
9596
PGDATAOLD=$(cat /etc/postgresql/postgresql.conf | grep data_directory | sed "s/data_directory = '\(.*\)'.*/\1/")
@@ -158,5 +159,5 @@ EOF
158159

159160
trap cleanup ERR
160161

161-
initiate_upgrade >> /var/log/pg-upgrade-initiate.log 2>&1
162-
echo "Upgrade initiate job completed "
162+
initiate_upgrade >> /var/log/pg-upgrade-initiate.log 2>&1 &
163+
echo "Upgrade initiate job completed"

0 commit comments

Comments
 (0)