You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"\n\n===== KnowWhereGraph Deployment Configuration Test ====="
16
+
echo"===== ====="
17
+
echo" Checking SSL Certificates "
18
+
echo" ......................... "
9
19
10
20
# Check for nginx's local certificates
11
21
if [ !-f ./nginx/local-certs/cert.ped ];then
@@ -21,53 +31,102 @@ else
21
31
echo"${GREEN}Good${DEFAULT}: Located local certificates for GraphDB."
22
32
fi
23
33
24
-
echo"\n Checking Web Applications... \n"
34
+
echo"\n Checking Web Applications "
35
+
echo" ......................... "
36
+
25
37
# Check for the faceted search folder
26
38
if [ !-d ./nginx/sites/kwg-faceted-search ];then
27
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate the faceted search folder. Has it been cloned into nginx/sites?"
39
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate the faceted search folder. Has it been cloned into nginx/sites?"
28
40
else
29
41
echo"${GREEN}Good${DEFAULT}: Located the Faceted Search folder."
30
42
fi
31
43
32
44
# Check for Faceted Search's build directory
33
45
if [ !-d ./nginx/sites/kwg-faceted-search/dist/faceted-search ];then
34
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate the Faceted Search build directory. Try building using the docker-compose files within the faceted search folder."
46
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate the Faceted Search build directory. Try building using the docker-compose files within the faceted search folder."
35
47
else
36
48
echo"${GREEN}Good${DEFAULT}: Located the Faceted Search build artifacts."
37
49
fi
38
50
39
-
# Check for void file
40
-
if [ !-f nginx/sites/void/void.ttl ];then
41
-
echo"${ORANGE}Warning${DEFAULT}: Void ttl file not detected!\n"
42
-
else
43
-
echo"${GREEN}Good${DEFAULT}: Located the void.ttl file."
44
-
fi
45
-
46
51
# Check for KW Panels
47
52
if [ !-d nginx/sites/kw-panels ];then
48
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate the KW-Panels. Try cloning the repository into nginx/sites.\n"
53
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate the KW-Panels. Try cloning the repository into nginx/sites."
49
54
else
50
55
echo"${GREEN}Good${DEFAULT}: Located the kw-panels folder."
51
56
fi
52
57
53
58
# Check for Node Browser src
54
59
if [ !-d nginx/sites/node-browser/node-browser ];then
55
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate the node browser. Try cloning the repository into nginx/sites.\n"
60
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate the node browser. Try cloning the repository into nginx/sites."
56
61
else
57
62
echo"${GREEN}Good${DEFAULT}: Located the node browser source."
58
63
fi
59
64
60
65
# Check for Node Browser dist
61
66
if [ !-d nginx/sites/node-browser/node-browser/dist/node-browser ];then
62
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate the node browser's build artifacts. Try building the source with its docker-compose file.\n"
67
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate the node browser's build artifacts. Try building the source with its docker-compose file.\n"
63
68
else
64
69
echo"${GREEN}Good${DEFAULT}: Located the node browser build artifacts."
65
70
fi
66
71
72
+
echo"\n Checking Web Artifacts "
73
+
echo" ...................... "
74
+
75
+
76
+
# Check for void file
77
+
if [ !-f nginx/sites/void/void.ttl ];then
78
+
echo"${ORANGE}Error${DEFAULT}: Void ttl file not detected!\n This file comes from the kwg-ontologies repository. Check the makefile for the clone command."
79
+
else
80
+
echo"${GREEN}Good${DEFAULT}: Located the void.ttl file."
81
+
fi
82
+
83
+
67
84
# Check for robots.txt
68
85
if [ !-f nginx/sites/robots.txt ];then
69
-
echo"${ORANGE}Warning${DEFAULT}: Failed to locate robots.txt.\n"
86
+
echo"${ORANGE}Error${DEFAULT}: Failed to locate robots.txt"
70
87
else
71
88
echo"${GREEN}Good${DEFAULT}: Located the robots.txt"
72
89
fi
73
90
91
+
echo"\n Checking System Artifacts "
92
+
echo" ......................... "
93
+
94
+
# Check for an exiting Grafana database file
95
+
if [ -f grafana/persistent_storage/grafana.db ];then
96
+
echo"${ORANGE}Warning${DEFAULT}: Found an existing Grafana database file. Any Grafana password changes will not persist."
97
+
else
98
+
echo"${GREEN}Good${DEFAULT}: Failed to find an existing Grafana database file. A new one will be created"
99
+
fi
100
+
101
+
# Check for any existing GraphDB repositories
102
+
103
+
if [ -d graphdb/ ];then
104
+
echo"${ORANGE}Info${DEFAULT}: Found existing GraphDB repositories. These will be loaded when GraphDB starts."
105
+
else
106
+
echo"${GREEN}Info${DEFAULT}: Failed to find any GraphDB repositories. GraphDB will not be started with any repositories."
107
+
fi
108
+
109
+
echo""
110
+
echo""
111
+
112
+
113
+
echo"\n Checking Variables "
114
+
echo" ......................... "
115
+
116
+
# Check for an exiting Grafana database file
117
+
if [ -f grafana/persistent_storage/grafana.db ];then
118
+
echo"${ORANGE}Warning${DEFAULT}: Found an existing Grafana database file. Any Grafana password changes will not persist."
119
+
else
120
+
echo"${GREEN}Good${DEFAULT}: Failed to find an existing Grafana database file. A new one will be created"
121
+
fi
122
+
123
+
# Check for any existing GraphDB repositories
124
+
125
+
if [ -d graphdb/ ];then
126
+
echo"${ORANGE}Info${DEFAULT}: Found existing GraphDB repositories. These will be loaded when GraphDB starts."
127
+
else
128
+
echo"${GREEN}Info${DEFAULT}: Failed to find any GraphDB repositories. GraphDB will not be started with any repositories."
0 commit comments