Page MenuHomec4science

perms.sh
No OneTemporary

File Metadata

Created
Wed, May 22, 05:47

perms.sh

#!/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