summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-06-01 13:36:16 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-06-29 08:46:22 +0000
commite5dd92c31d6e2e79a062426d2f76e2d51176b444 (patch)
tree673861de915279f86365600f1d0a230cb0a7c058 /lib
parentRenaming cnt.auto to cnt.container-server in order to split functionality of ... (diff)
downloadcompute-tools-e5dd92c31d6e2e79a062426d2f76e2d51176b444.tar.xz
compute-tools-e5dd92c31d6e2e79a062426d2f76e2d51176b444.zip
Executing auto commands only when cnt.auto=true and cnt.container-server matches the current hostname.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/auto2
1 files changed, 1 insertions, 1 deletions
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)"