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:
parent
3aed651062
commit
9b99a03cbf
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user