Skip to content

Commit 681a06c

Browse files
committed
Map DRUPAL_SITE_URI to APP_HOSTNAME for postfix, nginx
1 parent 51d944c commit 681a06c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
set -eu
3+
4+
# If SITE_URI exists and APP_HOSTNAME is not already set,
5+
# map SITE_URI -> APP_HOSTNAME.
6+
if [ -n "${SITE_URI:-}" ] && [ -z "${APP_HOSTNAME:-}" ]; then
7+
export APP_HOSTNAME="$SITE_URI"
8+
fi
9+

0 commit comments

Comments
 (0)