Skip to content

Commit

Permalink
check UF in civicrm-upgrade-test, use standalone snapshot library if …
Browse files Browse the repository at this point in the history
…standalone
  • Loading branch information
ufundo committed Sep 20, 2024
1 parent 3388763 commit 32cbe93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/civicrm-upgrade-test
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,15 @@ while [ -n "$1" ]; do
esac
done

CIVICRM_UF=$( cv --cwd="$WEB_ROOT" ev 'echo CIVICRM_UF;' )

echo "Identify files: [$DATABASE_EXPRS]"
DATABASE_FILES=$(eval php "$SCRIPT_DIR/civicrm-upgrade-examples" $DATABASE_EXPRS)
if [[ "$CIVICRM_UF" == "Standalone" ]]; then
echo "Using 'databases_standalone' snapshot library for Standalone"
DATABASE_FILES=$(eval php "$SCRIPT_DIR/civicrm-upgrade-examples" --snapshot-library databases_standalone $DATABASE_EXPRS)
else
DATABASE_FILES=$(eval php "$SCRIPT_DIR/civicrm-upgrade-examples" $DATABASE_EXPRS)
fi
if [ $? -ne 0 ]; then
echo "Failed to evaluate expression \"$1\" => $DATABASE_FILES" >> /dev/stderr
exit 1
Expand Down

0 comments on commit 32cbe93

Please sign in to comment.