From d049354b52e5ae423c7b5333e5eca64b1f2fe60e 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(-) (limited to 'lib/container/auto') 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