forked from pegasystems/pega-helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validatexml.sh
48 lines (42 loc) · 1.4 KB
/
validatexml.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
if xmllint --noout charts/pega/config/deploy/context.xml.tmpl >/dev/null 2>&1; then
echo "context.xml.tmpl validation passed"
else
echo "context.xml.tmpl formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/config/deploy/server.xml.tmpl >/dev/null 2>&1; then
echo "server.xml.tmpl validation passed"
else
echo "server.xml.tmpl formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/config/deploy/prconfig.xml >/dev/null 2>&1; then
echo "deploy prconfig.xml validation passed"
else
echo "deploy prconfig.xml formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/config/deploy/prlog4j2.xml >/dev/null 2>&1; then
echo "deploy prlog4j2.xml validation passed"
else
echo "deploy prlog4j2.xml formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/config/deploy/tomcat-web.xml >/dev/null 2>&1; then
echo "deploy tomcat-web.xml validation passed"
else
echo "deploy tomcat-web.xml formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/charts/installer/config/prlog4j2.xml >/dev/null 2>&1; then
echo "installer prlog4j2.xml validation passed"
else
echo "installer prlog4j2.xml formatting is incorrect"
exit 1
fi
if xmllint --noout charts/pega/charts/installer/config/prconfig.xml.tmpl >/dev/null 2>&1; then
echo "installer prconfig.xml.tmpl validation passed"
else
echo "installer prconfig.xml.tmpl formatting is incorrect"
exit 1
fi