Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84965082
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
Wed, Sep 25, 20:38
Size
422 B
Mime Type
text/x-shellscript
Expires
Fri, Sep 27, 20:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21112030
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