From 533c2a1034688b444953531d5c054b08ac599648 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Mon, 22 Mar 2021 09:38:36 +0100 Subject: [PATCH] fix sed script when writing site env --- entrypoint/site-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint/site-config.sh b/entrypoint/site-config.sh index 65e07ca..bcef00b 100644 --- a/entrypoint/site-config.sh +++ b/entrypoint/site-config.sh @@ -27,9 +27,9 @@ fi set | grep -E -v "^(HOSTNAME|PWD|PKG_RELEASE|NJS_VERSION|SHLVL|PATH|_|NGINX_VERSION|HOME)=" > "${NGINX_PREFIX}nginx.env" if [ "$MULTISITE" = "yes" ] ; then for server in $SERVER_NAME ; do - sed -i "~^${server}_.*=.*~d" "${NGINX_PREFIX}nginx.env" + sed -i "/^${server}_.*=.*/d" "${NGINX_PREFIX}nginx.env" done - sed -i "~^SERVER_NAME=.*~SERVER_NAME=${1}~" "${NGINX_PREFIX}nginx.env" + sed -i "s~^SERVER_NAME=.*~SERVER_NAME=${1}~" "${NGINX_PREFIX}nginx.env" fi # copy stub confs