Merge pull request #85 from Callum-/dilatometer
[matches/MCTX3420.git] / server / parameters
1 #!/bin/bash
2
3 # This script sets the options interpreted by the server at runtime.
4 # Enclose any settings that have whitespace with "quotation marks".
5
6
7 ## DO NOT EDIT THESE OPTIONS
8 LOGERR=0
9 LOGWARN=1
10 LOGNOTE=2
11 LOGINFO=3
12 LOGDEBUG=4
13
14 ## OPTIONS PASSED TO SERVER
15
16 # Set the verbosity of log messages
17 verbosity="$LOGDEBUG"
18
19 # Set to 1/0 to enable/disable the pin module (gives direct control over GPIO/ADC/PWM)
20 #TODO: This option isn't actually implemented yet...
21 pin_test="0"
22
23 # Set to the URI to use authentication
24 # (Uncomment one of these to enable authentication)
25
26 #LDAP auth
27 #auth_uri="ldap://192.168.1.1#ou=People,dc=daedalus"
28 #auth_uri="ldaps://ldap.pheme.uwa.edu.au#ou=Users,ou=UWA,dc=uwads,dc=uwa,dc=edu,dc=au" #UWA
29
30 #Shadow auth (choose the file location)
31 #auth_uri="/etc/shadow"
32 #auth_uri="shadow"
33
34 #UserCake
35 #auth_uri="mysql://localhost#usercake,$(cat mysql_password)"
36
37 ## OPTIONS TO BE PASSED TO SERVER; DO NOT EDIT
38 if [ -n "$auth_uri" ]; then
39         parameters="-v $verbosity -p $pin_test -A $auth_uri"
40 else
41         parameters="-v $verbosity -p $pin_test"
42 fi;

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