Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83471385
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
Tue, Sep 17, 07:57
Size
422 B
Mime Type
text/x-shellscript
Expires
Thu, Sep 19, 07:57 (2 d)
Engine
blob
Format
Raw Data
Handle
20843908
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