summaryrefslogtreecommitdiffstats
path: root/lib/container/auto
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-24 14:11:54 +0000
commitd049354b52e5ae423c7b5333e5eca64b1f2fe60e (patch)
treed706104a86ba11d5509dd9781e0372dd11d9bf71 /lib/container/auto
parentRenaming cnt.auto to cnt.container-server in order to split functionality of ... (diff)
downloadcompute-tools-d049354b52e5ae423c7b5333e5eca64b1f2fe60e.tar.xz
compute-tools-d049354b52e5ae423c7b5333e5eca64b1f2fe60e.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)"