summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2020-10-30 04:00:01 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2020-10-30 04:04:48 +0000
commit7922efbfd21547831fc6d5f6b094122c4e36133b (patch)
treed7042b437779086e3b18a5166663f207cd7ada7e /lib
parentAdding awk optimizations in configuration file handling. (diff)
downloadcompute-tools-7922efbfd21547831fc6d5f6b094122c4e36133b.tar.xz
compute-tools-7922efbfd21547831fc6d5f6b094122c4e36133b.zip
Adding one more awk optimizations in container stop command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/stop2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/stop b/lib/container/stop
index 5590747..a299cb1 100755
--- a/lib/container/stop
+++ b/lib/container/stop
@@ -155,7 +155,7 @@ STATE="$(machinectl show ${NAME} 2>&1 | awk -FState= '/^State=/ { print $2 }')"
case "${CLEAN}" in
true)
# Removing overlay mounts
- CNT_OVERLAY="$(awk -F= '/^cnt.overlay=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
+ CNT_OVERLAY="$(awk -Fcnt.overlay= '/^cnt.overlay=/ { print $2 }' ${CONFIG}/${NAME}.conf)"
if [ -n "${CNT_OVERLAY}" ]
then