Ensure, that the docker mount directory exists

Fix #1097

Signed-off-by: Julien Duponchelle <julien@gns3.net>
pull/1137/head
Bernhard Ehlers 7 years ago committed by Julien Duponchelle
parent c96694105c
commit ec4e69b0d8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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"

Loading…
Cancel
Save