小草林(田梓萱)
90db12dfc0
Some checks failed
Lock closed issues/PRs / lock (push) Has been cancelled
Test / Sentry self-hosted end-to-end tests (push) Has been cancelled
Test / unit tests (push) Has been cancelled
Test / Sentry upgrade test (push) Has been cancelled
Test / integration test v2.19.0 - customizations disabled (push) Has been cancelled
Test / integration test v2.19.0 - customizations enabled (push) Has been cancelled
Test / integration test v2.26.0 - customizations disabled (push) Has been cancelled
Test / integration test v2.26.0 - customizations enabled (push) Has been cancelled
Signed-off-by: 小草林(田梓萱) <xcl@xuegao-tzx.top>
17 lines
527 B
Bash
17 lines
527 B
Bash
echo "${_group}Checking memcached backend ..."
|
|
|
|
if grep -q "\.PyMemcacheCache" "$SENTRY_CONFIG_PY"; then
|
|
echo "PyMemcacheCache found in $SENTRY_CONFIG_PY, gonna assume you're good."
|
|
else
|
|
if grep -q "\.MemcachedCache" "$SENTRY_CONFIG_PY"; then
|
|
echo "MemcachedCache found in $SENTRY_CONFIG_PY, you should switch to PyMemcacheCache."
|
|
echo "See:"
|
|
echo " https://develop.sentry.dev/self-hosted/releases/#breaking-changes"
|
|
exit 1
|
|
else
|
|
echo 'Your setup looks weird. Good luck.'
|
|
fi
|
|
fi
|
|
|
|
echo "${_endgroup}"
|