Skip to content

Commit 4e2c59b

Browse files
committed
feat: add new users to team group
1 parent f25b8ec commit 4e2c59b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/common.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set -eu
55
DOMAIN="compiler.la"
66
# Compiler's archive account
77
ARCHIVE="archive@$DOMAIN"
8+
# Compiler groups
9+
TEAM="team@$DOMAIN"
810

911
# prints a simple timestamp HH:mm:ss
1012
ts () {

bin/create.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ if user_exists $ACCOUNT; then
3838
exit 1
3939
else
4040
echo_ts "Account $ACCOUNT does not exist, continuing..."
41-
4241
fi
4342

4443
# Account creation
@@ -47,4 +46,8 @@ echo_ts "Creating account..."
4746

4847
gam create user $ACCOUNT "$@"
4948

49+
echo_ts "Adding to $TEAM group..."
50+
51+
gam user $ACCOUNT add groups member $TEAM
52+
5053
echo_ts "$ACCOUNT has been created"

0 commit comments

Comments
 (0)