-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonarg-install.sh
executable file
·57 lines (54 loc) · 1.22 KB
/
sonarg-install.sh
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
49
50
51
52
53
54
55
56
57
#!/bin/bash
PWD='jS0nar$'
ACCEPT_LIC="yes"
PROD_SELECT="1"
SONARW_HOME="/var/lib/sonarw"
ADMIN_PWD="$PWD\n$PWD"
SONARGD_PWD="$PWD\n$PWD"
SEC_ADMIN_PWD="$PWD\n$PWD"
DEFAULT_USER_PWD="$PWD\n$PWD"
SONARG_DIR="/var/lib/sonarw"
SONARG_AZURE="NO"
# SonarW Setup
BSON_SORT_DIR_1="/var/lib/sonarw/tmp"
BSON_SORT_DIR_2="/var/lib/sonarw/tmp"
EXTERNAL_SORT_DIR="/var/lib/sonarw/tmp"
MASTER_PORT="3030"
# JSON Studeio Config
SYS_ADMIN_EMAIL="[email protected]"
FROM_EMAIL="[email protected]"
SMTP_SERVER="[email protected]"
SMTP_SERVER_PORT=""
SMTP_SSL="yes"
SMTP_USER="joey"
SMTP_PWD="$PWD"
FQN="localhost"
REPORT_DIR="/opt/sonarfinder/sonarFinder/reports"
# Cloud setup
CLOUD_SETUP="NO"
echo -e \
"$ACCEPT_LIC\n" \
"$PROD_SELECT\n" \
"$SONARW_HOME\n" \
"$ADMIN_PWD\n" \
"$SONARGD_PWD\n" \
"$SEC_ADMIN_PWD\n" \
"$DEFAULT_USER_PWD\n" \
"$SONARG_DIR\n" \
"$SONARG_AZURE\n" \
"$BSON_SORT_DIR_1\n" \
"$BSON_SORT_DIR_2\n" \
"$EXTERNAL_SORT_DIR\n" \
"$MASTER_PORT\n" \
"$SYS_ADMIN_EMAIL\n" \
"$FROM_EMAIL\n" \
"$SMTP_SERVER\n" \
"$SMTP_SERVER_PORT\n" \
"$SMTP_SSL\n" \
"$SMTP_USER\n" \
"$SMTP_PWD\n" \
"$FQN\n" \
"$REPORT_DIR\n" \
"$CLOUD_SETUP\n" \
"yes\n" \
| sonarg-setup