1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +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 # Restore file permission
for i in $(echo "$GNS3_VOLUMES" | tr ":" "\n") for i in $(echo "$GNS3_VOLUMES" | tr ":" "\n")
do do
cd $i if [ -f "$i/.gns3_perms" ]
if [ -f .gns3_perms ]
then then
while IFS=: read PERMS OWNER GROUP FILE while IFS=: read PERMS OWNER GROUP FILE
do do
chmod "$PERMS" "$FILE" chmod "$PERMS" "$FILE"
chown "${OWNER}:${GROUP}" "$FILE" chown "${OWNER}:${GROUP}" "$FILE"
done < .gns3_perms done < "$i/.gns3_perms"
fi fi
done done