mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00: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
|
||||
while IFS=: read PERMS OWNER GROUP FILE
|
||||
do
|
||||
chmod "$PERMS" "$FILE"
|
||||
chown "${OWNER}:${GROUP}" "$FILE"
|
||||
[ -L "$FILE" ] || chmod "$PERMS" "$FILE"
|
||||
chown -h "${OWNER}:${GROUP}" "$FILE"
|
||||
done < "$i/.gns3_perms"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user