Skip to content

Commit 7d564c7

Browse files
committed
TODO
1 parent 1930471 commit 7d564c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ function initiate_upgrade {
285285
EOF
286286
)
287287

288+
# copying custom configurations
289+
echo "11. Copying custom configurations"
290+
mkdir -p "$MOUNT_POINT/conf"
291+
cp -R /etc/postgresql-custom/* "$MOUNT_POINT/conf/"
292+
288293
if [ "$IS_DRY_RUN" = true ]; then
289294
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
290295
else
@@ -302,11 +307,6 @@ EOF
302307

303308
su -c "$UPGRADE_COMMAND" -s "$SHELL" postgres
304309

305-
# copying custom configurations
306-
echo "11. Copying custom configurations"
307-
mkdir -p "$MOUNT_POINT/conf"
308-
cp -R /etc/postgresql-custom/* "$MOUNT_POINT/conf/"
309-
310310
# removing wal-g config as to allow it to be explicitly enabled on the new instance
311311
rm -f "$MOUNT_POINT/conf/wal-g.conf"
312312

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.1.24"
1+
postgres-version = "15.1.1.24-pg-upgrade"

0 commit comments

Comments
 (0)