Initial scaffold for test scripts
[uccvend-vagrant.git] / scripts / InitialConfig.sh
diff --git a/scripts/InitialConfig.sh b/scripts/InitialConfig.sh
new file mode 100755 (executable)
index 0000000..ab17ded
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# InitialConfig.sh
+
+# This script will set up some initial users with some 
+# credit and add them to various groups to allow them to do various things
+
+# error handling
+abort()
+{
+    echo >&2 '*** ABORTED ***'
+    echo "An error occurred. Exiting..." >&2
+    exit 1
+}
+
+trap 'abort' 0
+
+set -e
+
+# If an error occurs, the abort() function will be called.
+#----------------------------------------------------------
+
+# Setup some users
+
+# alice                - run of the mill UCC user
+# bob          - wheel member
+# chuck                - committee member
+# dave         - expired user
+# eve          - second run of mill UCC user
+# murphy       - wheel and coke/door member
+
+
+# Done!
+trap : 0
+

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