1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Fix working dir when starting a docker container

This commit is contained in:
Julien Duponchelle 2016-06-01 20:13:48 +02:00
parent 3aed651062
commit 9b99a03cbf
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

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