-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check memcached backend in Django (#2778)
Bail if using old memcached backend
- Loading branch information
1 parent
2346a69
commit faef482
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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}" |