Skip to content

Commit

Permalink
Ensure REDIS_SCHEME is set with default value (librenms#300)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max and crazy-max authored Aug 12, 2022
1 parent 3c84a0a commit dc731ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/compose/librenms.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ LOG_IP_VAR=remote_addr
CACHE_DRIVER=redis
SESSION_DRIVER=redis
REDIS_HOST=redis
REDIS_SCHEME=tcp

LIBRENMS_SNMP_COMMUNITY=librenmsdocker

Expand Down
3 changes: 2 additions & 1 deletion rootfs/etc/cont-init.d/05-svc-dispatcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SIDECAR_DISPATCHER=${SIDECAR_DISPATCHER:-0}
#DISPATCHER_NODE_ID=${DISPATCHER_NODE_ID:-dispatcher1}

#REDIS_HOST=${REDIS_HOST:-localhost}
#REDIS_SCHEME=${REDIS_SCHEME:-tcp}
REDIS_SCHEME=${REDIS_SCHEME:-tcp}
REDIS_PORT=${REDIS_PORT:-6379}
#REDIS_SENTINEL=${REDIS_SENTINEL:-localhost}
REDIS_SENTINEL_SERVICE=${REDIS_SENTINEL_SERVICE:-librenms}
Expand Down Expand Up @@ -108,6 +108,7 @@ elif [ -n "$REDIS_SENTINEL" ]; then
cat >>${LIBRENMS_PATH}/.env <<EOL
REDIS_SENTINEL=${REDIS_SENTINEL}
REDIS_SENTINEL_SERVICE=${REDIS_SENTINEL_SERVICE}
REDIS_SCHEME=${REDIS_SCHEME}
REDIS_PORT=${REDIS_PORT}
REDIS_PASSWORD=${REDIS_PASSWORD}
REDIS_DB=${REDIS_DB}
Expand Down

0 comments on commit dc731ef

Please sign in to comment.