mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
parent
775ee4259e
commit
c829a250a9
@ -29,10 +29,15 @@ if [ ! -d /tmp/gns3/bin ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore file permission and mount volumes
|
# Restore file permission and mount volumes
|
||||||
echo "$GNS3_VOLUMES" | tr ":" "\n" | while read i
|
for i in $(echo "$GNS3_VOLUMES" | tr ":" "\n")
|
||||||
do
|
do
|
||||||
# Copy original files if destination is empty (first start)
|
# Copy original files if destination is empty (first start)
|
||||||
[ "$(ls -A "/gns3volumes$i")" ] || cp -a "$i/." "/gns3volumes$i"
|
if ! [ "$(ls -A /gns3volumes$i)" ]; then
|
||||||
|
for file in $(ls -A "$i")
|
||||||
|
do
|
||||||
|
cp -a "$i/$file" "/gns3volumes$i/$file"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
mount --bind "/gns3volumes$i" "$i"
|
mount --bind "/gns3volumes$i" "$i"
|
||||||
if [ -f "$i/.gns3_perms" ]
|
if [ -f "$i/.gns3_perms" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user