Fix working dir when starting a docker container

pull/565/head
Julien Duponchelle 8 years ago
parent 3aed651062
commit 9b99a03cbf
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -31,14 +31,13 @@ fi
# Restore file permission
for i in $(echo "$GNS3_VOLUMES" | tr ":" "\n")
do
cd $i
if [ -f .gns3_perms ]
if [ -f "$i/.gns3_perms" ]
then
while IFS=: read PERMS OWNER GROUP FILE
do
chmod "$PERMS" "$FILE"
chown "${OWNER}:${GROUP}" "$FILE"
done < .gns3_perms
done < "$i/.gns3_perms"
fi
done

Loading…
Cancel
Save