monolithic/overlay/hooks/entrypoint-pre.d/00_deprecation.sh
James Kinsman 09ef3314e2
Update 00_deprecation.sh
Invert logic for cache_mem_size deprecation check
2022-03-07 08:47:00 +00:00

15 lines
477 B
Bash

#!/bin/bash
if [[ ! -z "${CACHE_DOMAIN_REPO}" ]]; then
echo "ERROR: CACHE_DOMAIN_REPO environment variable has be deprecated in favour of CACHE_DOMAINS_REPO. Please update your config"
exit 1
fi
if [[ ! -z "${CACHE_MEM_SIZE}" ]]; then
echo " *** CACHE_MEM_SIZE has been deprecated in place of CACHE_INDEX_SIZE"
echo " *** Using CACHE_MEM_SIZE as the value"
echo " *** Please update your configuration at your earliest convenience"
CACHE_INDEX_SIZE=$CACHE_MEM_SIZE
fi