~$ prefix=`arv --format=uuid user current | cut -d- -f1`
~$ echo "Site prefix is '$prefix'"
~$ read -rd $'\000' newgroup <<EOF; arv group create --group "$newgroup"
{
"uuid":"$prefix-j7d0g-fffffffffffffff",
"name":"All users"
}
EOF
~$ prefix=`arv --format=uuid user current | cut -d- -f1`
~$ echo "Site prefix is '$prefix'"
~$ all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"
~$ repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`
~$ echo "Arvados repository uuid is '$repo_uuid'"
~$ read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
{
"tail_uuid":"$all_users_group_uuid",
"head_uuid":"$repo_uuid",
"link_class":"permission",
"name":"can_read"
}
EOF