Skip to content

Commit

Permalink
fix(doublequotes): Double-quote remaining variables
Browse files Browse the repository at this point in the history
This should prevent issues with whitespace, or globbing-related issues.

Signed-off-by: Dom Rodriguez <[email protected]>
  • Loading branch information
shymega committed Jan 4, 2024
1 parent 14b166e commit 6eab9ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions start-redis-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ if [[ ! -z "${REDIS_PASSWORD}" ]]; then
fi

# Set maxmemory-policy to 'allkeys-lru' for caching servers that should always evict old keys
: ${MAXMEMORY_POLICY:="volatile-lru"}
: ${APPENDONLY:="no"}
: ${FLY_VM_MEMORY_MB:=512}
: "${MAXMEMORY_POLICY:="volatile-lru"}"
: "${APPENDONLY:="no"}"
: "${FLY_VM_MEMORY_MB:=512}"
if [ "${NOSAVE}" = "" ] ; then
: ${SAVE:="3600 1 300 100 60 10000"}
: "${SAVE:="3600 1 300 100 60 10000"}"
fi
# Set maxmemory to 10% of available memory
MAXMEMORY=$(($FLY_VM_MEMORY_MB*90/100))

redis-server "$PW_ARG" \
--dir /data/ \
--maxmemory "${MAXMEMORY}mb" \
--maxmemory-policy $MAXMEMORY_POLICY \
--appendonly $APPENDONLY \
--maxmemory-policy "$MAXMEMORY_POLICY" \
--appendonly "$APPENDONLY" \
--save "$SAVE"

0 comments on commit 6eab9ac

Please sign in to comment.