Skip to content

Commit 320305e

Browse files
authored
fix(15.6/upgrades): collision when patching wrappers lib locations for upgrades (#1252)
1 parent 1d1396e commit 320305e

File tree

1 file changed

+2
-2
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+2
-2
lines changed

Diff for: ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function patch_wrappers {
211211
WRAPPERS_LIB_PATH_DIR=$(dirname "$WRAPPERS_LIB_PATH")
212212
if [ "$WRAPPERS_LIB_PATH" != "$WRAPPERS_LIB_PATH_DIR/${OLD_LIB_FILE_NAME}" ]; then
213213
echo "Copying $WRAPPERS_LIB_PATH to $WRAPPERS_LIB_PATH_DIR/${OLD_LIB_FILE_NAME}"
214-
cp "$WRAPPERS_LIB_PATH" "$WRAPPERS_LIB_PATH_DIR/${OLD_LIB_FILE_NAME}"
214+
cp "$WRAPPERS_LIB_PATH" "$WRAPPERS_LIB_PATH_DIR/${OLD_LIB_FILE_NAME}" || true
215215
fi
216216
fi
217217
done
@@ -225,7 +225,7 @@ function patch_wrappers {
225225
LIB_FILE_NAME=$(basename "$OLD_WRAPPER_LIB_PATH")
226226
if [ "$WRAPPERS_LIB_PATH" != "$PGLIBNEW/${LIB_FILE_NAME}" ]; then
227227
echo "Copying $WRAPPERS_LIB_PATH to $PGLIBNEW/${LIB_FILE_NAME}"
228-
cp "$WRAPPERS_LIB_PATH" "$PGLIBNEW/${LIB_FILE_NAME}"
228+
cp "$WRAPPERS_LIB_PATH" "$PGLIBNEW/${LIB_FILE_NAME}" || true
229229
fi
230230
fi
231231
fi

0 commit comments

Comments
 (0)