We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2235c4a commit 51f67ccCopy full SHA for 51f67cc
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -266,7 +266,10 @@ function initiate_upgrade {
266
OLD_WRAPPER_LIB_PATH=$(find "$PGLIBOLD" -name "wrappers*so" -print -quit)
267
if [ -f "$OLD_WRAPPER_LIB_PATH" ]; then
268
LIB_FILE_NAME=$(basename "$OLD_WRAPPER_LIB_PATH")
269
- cp "$WRAPPERS_LIB_PATH" "$PGLIBNEW/${LIB_FILE_NAME}"
+ if [ "$WRAPPERS_LIB_PATH" != "$PGLIBNEW/${LIB_FILE_NAME}" ]; then
270
+ echo "Copying $OLD_WRAPPER_LIB_PATH to $WRAPPERS_LIB_PATH"
271
+ cp "$OLD_WRAPPER_LIB_PATH" "$WRAPPERS_LIB_PATH"
272
+ fi
273
fi
274
275
0 commit comments