Skip to content

Commit 3ed84be

Browse files
committed
fix: handle shared path for pg_upgrade
1 parent 4e7d560 commit 3ed84be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_initiate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ EOF
244244
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
245245
else
246246
mv /var/lib/postgresql /var/lib/postgresql.bak
247-
ln -s "$PGSHARENEW" /var/lib/postgresql
247+
mkdir -p /var/lib/postgresql
248248

249249
if [ ! -L /var/lib/postgresql.bak/data ]; then
250250
if [ -L /var/lib/postgresql/data ]; then

0 commit comments

Comments
 (0)