blob: 65a4d8869a1d242e0a6b842ff7fabe7b601a5033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/bash
# This must run as a sourced script
if [ "$0" = "$BASH_SOURCE" ]; then
echo "Error: Script must be sourced"
exit 1
fi
mode="$1"
echo "mode=|$mode|"
if [ "debug" != "$mode" ] ; then
# Standard Environment
echo "=== SRTool STANDARD MODE ==="
export SRT_PORT=9000
# Quick development log
export SRTDBG_LOG=`pwd`/srt_dbg.log
# Development/debugging flags
export SRTDBG_MINIMAL_DB=0
export SRTDBG_SKIP_DEFECT_IMPORT=0
export SRTDBG_SKIP_CVE_IMPORT=0
export SRTDBG_SKIP_CPE_IMPORT=0
# Email credentials
export SRT_SMTP=temp_smnp_server
# Defect (Jira) and Email credentials
export SRT_PASSWD=temp_password
export SRT_USER=temp_user
else
# Minimal Development Environment
# Standard Environment
echo "=== SRTool DEBUG MODE ==="
export SRT_PORT=9990
# Quick development log
export SRTDBG_LOG=`pwd`/srt_dbg.log
# Development/debugging flags
export SRTDBG_MINIMAL_DB=1
export SRTDBG_SKIP_DEFECT_IMPORT=1
export SRTDBG_SKIP_CVE_IMPORT=0
export SRTDBG_SKIP_CPE_IMPORT=0
# Email credentials
export SRT_SMTP=temp_smnp_server
# Defect (Jira) and Email credentials
export SRT_PASSWD=temp_password
export SRT_USER=temp_user
fi
echo "SRT_PORT=$SRT_PORT ; Change it with: export SRT_PORT=9123"
|