Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65779181
perms.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jun 6, 04:13
Size
422 B
Mime Type
text/x-shellscript
Expires
Sat, Jun 8, 04:13 (2 d)
Engine
blob
Format
Raw Data
Handle
18125996
Attached To
rPHINFRA c4science
perms.sh
View Options
#!/bin/bash
if
[
$#
-lt 1
]
;
then
echo
"Usage: $0 <repo>"
exit
0
fi
server
=
'https://...'
repo
=
"$1"
perm
=
'obj.repository.author'
transaction
=
'{
"transactions": [
{"type": "view", "value":"'
$perm
'"},
{"type": "edit", "value":"'
$perm
'"},
{"type": "policy.push", "value":"'
$perm
'"}
],
"objectIdentifier": "'
$repo
'"
}'
echo
$transaction
| arc call-conduit --conduit-uri
$server
diffusion.repository.edit
Event Timeline
Log In to Comment