File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,13 @@ set -eu
5
5
DOMAIN=" compiler.la"
6
6
# Compiler's archive account
7
7
ARCHIVE=" archive@$DOMAIN "
8
- # Compiler groups
9
- PARTNERS=" partners@$DOMAIN "
10
- STAFF=" staff@$DOMAIN "
11
- TEAM=" team@$DOMAIN "
8
+ # Compiler org structure
9
+ OU_CONTRACTORS=" contractors"
10
+ OU_STAFF=" staff"
11
+ OU_PARTNERS=" $OU_STAFF /partners"
12
+ GROUP_PARTNERS=" $OU_PARTNERS @$DOMAIN "
13
+ GROUP_STAFF=" $OU_STAFF @$DOMAIN "
14
+ GROUP_TEAM=" team@$DOMAIN "
12
15
13
16
# prints a simple timestamp HH:mm:ss
14
17
ts () {
@@ -42,9 +45,9 @@ user_in_group() {
42
45
}
43
46
44
47
user_is_partner () {
45
- user_in_group " $1 " " $PARTNERS "
48
+ user_in_group " $1 " " $GROUP_PARTNERS "
46
49
}
47
50
48
51
user_is_staff () {
49
- user_in_group " $1 " " $STAFF "
52
+ user_in_group " $1 " " $GROUP_STAFF "
50
53
}
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ echo_ts "Creating account..."
46
46
47
47
gam create user $ACCOUNT password random changepassword " $@ "
48
48
49
- echo_ts " Adding to $TEAM group..."
49
+ echo_ts " Adding to $GROUP_TEAM group..."
50
50
51
- gam user $ACCOUNT add groups member $TEAM
51
+ gam user $ACCOUNT add groups member $GROUP_TEAM
52
52
53
53
echo_ts " $ACCOUNT has been created"
You can’t perform that action at this time.
0 commit comments