mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-03-31 13:35:08 -05:00
15 lines
365 B
Plaintext
Executable File
15 lines
365 B
Plaintext
Executable File
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
declare -r log_prefix="[init-redis-wait]"
|
|
|
|
echo "${log_prefix} Waiting for Redis to report ready"
|
|
|
|
# We use a Python script to send the Redis ping
|
|
# instead of installing redis-tools just for 1 thing
|
|
if ! python3 /usr/local/bin/wait-for-redis.py; then
|
|
exit 1
|
|
else
|
|
echo "${log_prefix} Redis ready"
|
|
fi
|