Skip to content

Commit daa2173

Browse files
committed
Map DRUPAL_SITE_URI to APP_HOSTNAME for postfix, nginx
1 parent 6238051 commit daa2173

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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)