feat(auth): add Redis authorization caching
This commit is contained in:
@@ -82,12 +82,8 @@ if [[ -z "${ready_body}" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
printf '%s\n' "${ready_body}" >"${result_dir}/readiness.json"
|
||||
if ! printf '%s' "${ready_body}" | grep -q '"database":true'; then
|
||||
echo "PostgreSQL is not ready: ${ready_body}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! printf '%s' "${ready_body}" | grep -q '"redis":{"configured":true,"ready":true}'; then
|
||||
echo "Redis is not configured and ready: ${ready_body}" >&2
|
||||
if ! printf '%s' "${ready_body}" | grep -q '"status":"ready"'; then
|
||||
echo "PostgreSQL or Redis is not ready: ${ready_body}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user