bitnami-containers/bitnami/redis-sentinel/5.0/debian-10/rootfs/setup.sh

25 lines
482 B
Bash
Executable File

#!/bin/bash
# shellcheck disable=SC1091
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purpose
# Load libraries
. /libredissentinel.sh
. /libos.sh
# Load Apache environment
eval "$(redis_env)"
# Create daemon user if needed
am_i_root && ensure_user_exists "$REDIS_SENTINEL_DAEMON_USER" "$REDIS_SENTINEL_DAEMON_GROUP"
# Ensure redis environment variables are valid
redis_validate
# Initialize redis sentinel
redis_initialize