Initial scaffold for test scripts
[uccvend-vagrant.git] / scripts / InitialConfig.sh
1 #!/bin/bash
2
3 # InitialConfig.sh
4
5 # This script will set up some initial users with some 
6 # credit and add them to various groups to allow them to do various things
7
8 # error handling
9 abort()
10 {
11     echo >&2 '*** ABORTED ***'
12     echo "An error occurred. Exiting..." >&2
13     exit 1
14 }
15
16 trap 'abort' 0
17
18 set -e
19
20 # If an error occurs, the abort() function will be called.
21 #----------------------------------------------------------
22
23 # Setup some users
24
25 # alice         - run of the mill UCC user
26 # bob           - wheel member
27 # chuck         - committee member
28 # dave          - expired user
29 # eve           - second run of mill UCC user
30 # murphy        - wheel and coke/door member
31
32
33 # Done!
34 trap : 0
35

UCC git Repository :: git.ucc.asn.au