Ensure, that the docker mount directory exists

Fix #1097

Signed-off-by: Julien Duponchelle <julien@gns3.net>
This commit is contained in:
Bernhard Ehlers authored and Julien Duponchelle committed 2017-07-20 16:12:20 +02:00
1 parent c96694105c
commit ec4e69b0d8
1 file changed
+3
@@ -31,6 +31,9 @@ fi
# Restore file permission and mount volumes
echo "$GNS3_VOLUMES" | tr ":" "\n" | while read i
do
# ensure, that the mount directory exists
mkdir -p "$i"
# Copy original files if destination is empty (first start)
[ "$(ls -A "/gns3volumes$i")" ] || cp -a "$i/." "/gns3volumes$i"