-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbootstrap.sh
More file actions
44 lines (38 loc) · 1.23 KB
/
bootstrap.sh
File metadata and controls
44 lines (38 loc) · 1.23 KB
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
#!/bin/bash
# Palette
function transform() {
while read -r line ; do
line=${line//\"/\\\"}
line=${line//\`/\\\`}
line=${line//\$/\\\$}
line=${line//\\\${/\${}
eval "echo \"$line\"";
done < ${1}
}
declare PALETTE_VERSION=${PALETTE_VERSION}
declare PALETTE_NBU=${PALETTE_NBU:=No}
declare DB_NAME=${DB_NAME}
declare IVS=${IVS:=false}
declare IVS_DB_NAME=${IVS_DB_NAME:=OIPA_IVS}
declare IVS_ENV=${IVS_ENV:=sandbox}
declare IVS_TRACK=${IVS_TRACK:=1}
declare IVS_RELEASE_MANAGEMENT=${IVS_RELEASE_MANAGEMENT:=on}
declare IVS_USE_PRODUCTS=${IVS_USE_PRODUCTS:=true}
if [ "$IVS" = true ] ; then
transform /uploads/EnvironmentConfig.ivs.xml.template > /uploads/EnvironmentConfig.xml
else
transform /uploads/EnvironmentConfig.noivs.xml.template > /uploads/EnvironmentConfig.xml
fi
EXTENSIONS_UPDATED_FILE=/extensions/updated.txt
EXTENSIONS_UPDATED="Unknown"
if [ -f $EXTENSIONS_UPDATED_FILE ]; then
EXTENSIONS_UPDATED=$(cat $EXTENSIONS_UPDATED_FILE)
fi
echo Extensions Updated: $EXTENSIONS_UPDATED
# Override
if [ -f /overrides/PAS.properties ]; then
echo "PAS.properties Override Found!"
cp -Rf /overrides/PAS.properties /opt/ibm/wlp/usr/shared/resources/conf/PAS.properties
fi
# Start
/opt/ibm/wlp/bin/server run defaultServer