compose-website/utils/add_to_group
2016-09-15 15:27:41 +01:00

8 lines
189 B
Bash
Executable file

#!/bin/bash -eux
source /etc/environment
user=$1
group=$2
curl -X POST --user ${cloud_admin}:${cloud_pass} https://${cloud_hostname}/ocs/v1.php/cloud/users/${1}/groups -d groupid="${2}"