@@ -35,25 +35,6 @@ elif [[ -f /usr/lib/localstack/.light-version ]] || [[ -f /usr/lib/localstack/.f
3535 echo " "
3636fi
3737
38- # FIXME: remove with 2.0
39- # the Dockerfile creates .marker file that will be overwritten if a volume is mounted into /tmp/localstack
40- if [ ! -f /tmp/localstack/.marker ]; then
41- # unless LEGACY_DIRECTORIES is explicitly set to 1, print an error message and exit with a non-zero exit code
42- if [[ -z ${LEGACY_DIRECTORIES} ]] || [[ ${LEGACY_DIRECTORIES} == " 0" ]]; then
43- echo " ERROR"
44- echo " ============================================================================"
45- echo " It seems you are mounting the LocalStack volume into /tmp/localstack."
46- echo " This will break the LocalStack container! Please update your volume mount"
47- echo " destination to /var/lib/localstack."
48- echo " You can suppress this error by setting LEGACY_DIRECTORIES=1."
49- echo " "
50- echo " See: https://github.com/localstack/localstack/issues/6398"
51- echo " ============================================================================"
52- echo " "
53- exit 1
54- fi
55- fi
56-
5738# This stores the PID of supervisord for us after forking
5839suppid=0
5940
@@ -92,10 +73,6 @@ test -d ${LOG_DIR} || mkdir -p ${LOG_DIR}
9273cat /dev/null > ${LOG_DIR} /localstack_infra.log
9374cat /dev/null > ${LOG_DIR} /localstack_infra.err
9475
95- # FIXME for backwards compatibility with LEGACY_DIRECTORIES=1
96- test -f /tmp/localstack_infra.log || ln -s ${LOG_DIR} /localstack_infra.log /tmp/localstack_infra.log
97- test -f /tmp/localstack_infra.err || ln -s ${LOG_DIR} /localstack_infra.err /tmp/localstack_infra.err
98-
9976# run modern runtime init scripts before starting localstack
10077test -d /etc/localstack/init/boot.d && /opt/code/localstack/.venv/bin/python -m localstack.runtime.init BOOT
10178
0 commit comments