Ensure, that the docker mount directory exists

Fix #1097

Signed-off-by: Julien Duponchelle <julien@gns3.net>
This commit is contained in:
Bernhard Ehlers 2017-07-02 11:10:25 +02:00 committed by Julien Duponchelle
parent c96694105c
commit ec4e69b0d8
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

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