Skip to content

Commit

Permalink
Add APP_DIR and LEGACY_V4_REDIRECT options
Browse files Browse the repository at this point in the history
Fixes #181
  • Loading branch information
d7415 committed Jan 24, 2024
1 parent d10de82 commit 8c97087
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c97087

Please sign in to comment.