From bff5a8416168eb185b01797a8f6e48f2b6154cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Fri, 22 Sep 2023 10:40:49 +0200 Subject: [PATCH] fix: fix bug in elasticvue entrypoint The custom configuration was added at every reload, which broke the config --- docker/elasticvue-entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/elasticvue-entrypoint.sh b/docker/elasticvue-entrypoint.sh index 43b5b8ef..3c42f0ed 100755 --- a/docker/elasticvue-entrypoint.sh +++ b/docker/elasticvue-entrypoint.sh @@ -4,8 +4,8 @@ # we would have done that with template mechanism, # but elasticvue use an lod nginx NGINX_CONF=/etc/nginx/conf.d/elasticvue.conf -# prepare snipet to eventually add to conf ->/tmp/nginx_snipet +# prepare snippet to eventually add to conf +>/tmp/nginx_snippet CONF_MODIFIED=false if [ -n "$NGINX_BASIC_AUTH_USER_PASSWD" ] && ! ( grep auth_basic $NGINX_CONF ) then @@ -14,17 +14,17 @@ then # create htpasswd file echo "$NGINX_BASIC_AUTH_USER_PASSWD" > /etc/nginx/elasticvue_htpasswd # change nginx config - cat >>/tmp/nginx_snipet <>/tmp/nginx_snippet <>/tmp/nginx_snipet <>/tmp/nginx_snippet <