mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-02-06 16:23:49 +02:00
Restore file permissions fails for volumes with soft links. Fixes #1180.
This commit is contained in:
parent
d76bcf7078
commit
a567b394f3
@ -42,8 +42,8 @@ do
|
|||||||
then
|
then
|
||||||
while IFS=: read PERMS OWNER GROUP FILE
|
while IFS=: read PERMS OWNER GROUP FILE
|
||||||
do
|
do
|
||||||
chmod "$PERMS" "$FILE"
|
[ -L "$FILE" ] || chmod "$PERMS" "$FILE"
|
||||||
chown "${OWNER}:${GROUP}" "$FILE"
|
chown -h "${OWNER}:${GROUP}" "$FILE"
|
||||||
done < "$i/.gns3_perms"
|
done < "$i/.gns3_perms"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user