mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 08:18:30 +00:00
Ensure, that the docker mount directory exists
Fix #1097 Signed-off-by: Julien Duponchelle <julien@gns3.net>
This commit is contained in:
parent
c96694105c
commit
ec4e69b0d8
@ -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…
Reference in New Issue
Block a user