From 8c970870ab2f8a7f1174c8dd4e8ebf65c777f0f3 Mon Sep 17 00:00:00 2001 From: Martin Stone Date: Wed, 24 Jan 2024 22:14:54 +0000 Subject: [PATCH] Add `APP_DIR` and `LEGACY_V4_REDIRECT` options Fixes #181 --- inject.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inject.sh b/inject.sh index adc689c..7f47cba 100644 --- a/inject.sh +++ b/inject.sh @@ -14,9 +14,15 @@ fi if [ "$APP_FORCE_HTTPS" != '' ]; then sed -i "s|APP_FORCE_HTTPS=.*|APP_FORCE_HTTPS=${APP_FORCE_HTTPS}|i" /conf/.env fi +if [ "$APP_DIR" != '' ]; then + sed -i "s|APP_DIR=.*|APP_DIR=${APP_DIR}|i" /conf/.env +fi if [ "$DEBUGBAR_ENABLED" != '' ]; then sed -i "s|DEBUGBAR_ENABLED=.*|DEBUGBAR_ENABLED=${DEBUGBAR_ENABLED}|i" /conf/.env fi +if [ "$LEGACY_V4_REDIRECT" != '' ]; then + sed -i "s|LEGACY_V4_REDIRECT=.*|LEGACY_V4_REDIRECT=${LEGACY_V4_REDIRECT}|i" /conf/.env +fi if [ "$DB_OLD_LYCHEE_PREFIX" != '' ]; then sed -i "s|DB_OLD_LYCHEE_PREFIX=.*|DB_OLD_LYCHEE_PREFIX=${DB_OLD_LYCHEE_PREFIX}|i" /conf/.env fi