Browse code

config options may be now passed as env vars

Jiri Kuthan authored on 27/01/2003 19:11:47
Showing 1 changed files
... ...
@@ -6,18 +6,32 @@
6 6
 #
7 7
 
8 8
 # ser's FIFO server
9
-SER_FIFO=/tmp/ser_fifo
9
+if [ -z "$SER_FIFO" ]; then
10
+	SER_FIFO=/tmp/ser_fifo
11
+fi
10 12
 # period in which stats are reprinted
11
-WATCH_PERIOD=2
13
+if [ -z "$WATCH_PERIOD" ] ; then
14
+	WATCH_PERIOD=2
15
+fi
12 16
 
13 17
 # SQL config
14
-SQL_DB=ser
15
-SQL_HOST=localhost
16
-SQL_USER=ser
18
+if [ -z "$SQL_DB" ] ; then
19
+	SQL_DB=ser
20
+fi
21
+if [ -z "$SQL_HOST" ] ; then
22
+	SQL_HOST=localhost
23
+fi
24
+if [ -z "$SQL_USER" ] ; then
25
+	SQL_USER=ser
26
+fi
17 27
 
18 28
 # the read-only user for whom password may be stored here
19
-RO_USER=serro
20
-RO_PW=47serro11
29
+if [ -z "$RO_USER" ] ; then
30
+	RO_USER=serro
31
+fi
32
+if [ -z "$RO_PW" ] ; then
33
+	RO_PW=47serro11
34
+fi
21 35
 
22 36
 # binaries
23 37
 GENHA1='gen_ha1'