summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-16 19:05:59 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-01 09:21:29 +0000
commita915332d06ad8cb1696bb5a9256f50b79c0cf360 (patch)
tree22b60bc0b391c01785dfe609f70e2b7700e0d6fe /lib
parentAdding container enter command. (diff)
downloadcompute-tools-a915332d06ad8cb1696bb5a9256f50b79c0cf360.tar.xz
compute-tools-a915332d06ad8cb1696bb5a9256f50b79c0cf360.zip
Creating non-existing source directory for bind mounts automatically in container start command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/start6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/container/start b/lib/container/start
index d026bf1..82d7e1c 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -149,11 +149,7 @@ then
do
DIRECTORY="$(echo ${BIND} | awk -F: '{ print $1 }')"
- if [ ! -e "${DIRECTORY}" ]
- then
- echo "E: '${DIRECTORY}' - no such directory." >&2
- exit 1
- fi
+ mkdir -p "${DIRECTORY}"
done
BIND=""