|
|
|
@ -28,7 +28,27 @@ acl_path="/$__object_id" |
|
|
|
|
|
|
|
|
|
acl_is="$( cat "$__object/explorer/acl_is" )" |
|
|
|
|
|
|
|
|
|
acl_should="$( cat "$__object/parameter/acl" )" |
|
|
|
|
if [ -f "$__object/parameter/acl" ] |
|
|
|
|
then |
|
|
|
|
acl_should="$( cat "$__object/parameter/acl" )" |
|
|
|
|
elif |
|
|
|
|
[ -f "$__object/parameter/user" ] \ |
|
|
|
|
|| [ -f "$__object/parameter/group" ] \ |
|
|
|
|
|| [ -f "$__object/parameter/mask" ] \ |
|
|
|
|
|| [ -f "$__object/parameter/other" ] |
|
|
|
|
then |
|
|
|
|
acl_should="$( for param in user group mask other |
|
|
|
|
do |
|
|
|
|
[ ! -f "$__object/parameter/$param" ] && continue |
|
|
|
|
|
|
|
|
|
echo "$param" | grep -Eq 'mask|other' && sep=:: || sep=: |
|
|
|
|
|
|
|
|
|
echo "$param$sep$( cat "$__object/parameter/$param" )" |
|
|
|
|
done )" |
|
|
|
|
else |
|
|
|
|
echo 'no parameters set' >&2 |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/default" ] |
|
|
|
|
then |
|
|
|
|