From ec4e69b0d8dd44548f1081400a365d4821f77df9 Mon Sep 17 00:00:00 2001 From: Bernhard Ehlers Date: Sun, 2 Jul 2017 11:10:25 +0200 Subject: [PATCH] Ensure, that the docker mount directory exists Fix #1097 Signed-off-by: Julien Duponchelle --- gns3server/compute/docker/resources/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/compute/docker/resources/init.sh b/gns3server/compute/docker/resources/init.sh index 43f31685..73996d09 100755 --- a/gns3server/compute/docker/resources/init.sh +++ b/gns3server/compute/docker/resources/init.sh @@ -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"