X-Git-Url: https://git.ucc.asn.au/?p=uccvend-vagrant.git;a=blobdiff_plain;f=scripts%2FInitialConfig.sh;fp=scripts%2FInitialConfig.sh;h=ab17dedb7cceb12d762d62da945abe29c7a4843f;hp=0000000000000000000000000000000000000000;hb=712674f9fdeeb9ae3a135d43612246e8c1e8188e;hpb=7bdb678756e18764a306b85c86ddfe8144ae1e9a diff --git a/scripts/InitialConfig.sh b/scripts/InitialConfig.sh new file mode 100755 index 0000000..ab17ded --- /dev/null +++ b/scripts/InitialConfig.sh @@ -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 +