From e5dd92c31d6e2e79a062426d2f76e2d51176b444 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 1 Jun 2017 15:36:16 +0200 Subject: Executing auto commands only when cnt.auto=true and cnt.container-server matches the current hostname. Signed-off-by: Daniel Baumann --- lib/container/auto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/container/auto b/lib/container/auto index 72b4290..dba868e 100755 --- a/lib/container/auto +++ b/lib/container/auto @@ -104,7 +104,7 @@ esac for FILE in "${CONFIG}"/*.conf do - if grep -Eqs "^ *cnt.container-server=true" "${FILE}" || grep -Eqs "^ *cnt.container-server=${HOST}" "${FILE}" + if grep -Eqs "^ *cnt.auto=true" "${FILE}" && grep -Eqs "^ *cnt.container-server=${HOST}" "${FILE}" then CONTAINER="$(basename ${FILE} .conf)" -- cgit v1.2.3