mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
11 lines
164 B
Bash
Executable File
11 lines
164 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
host="$(hostname -i || echo '127.0.0.1')"
|
|
|
|
if ping="$(redis-cli -h "$host" ping)" && [ "$ping" = 'PONG' ]; then
|
|
exit 0
|
|
fi
|
|
|
|
exit 1
|