@@ -11,18 +11,18 @@ configure_silverpeas() {
11
11
local configure=0
12
12
if [ " Z${locale} " != " Z" ]; then
13
13
echo " -> set locale to ${locale} "
14
- echo " SILVERPEAS_USER_LANGUAGE=${locale} " >> ${SILVERPEAS_HOME} /configuration/config.properties
15
- echo " SILVERPEAS_CONTENT_LANGUAGES=${locale} " >> ${SILVERPEAS_HOME} /configuration/config.properties
14
+ echo " SILVERPEAS_USER_LANGUAGE=${locale} " >> " ${SILVERPEAS_HOME} " /configuration/config.properties
15
+ echo " SILVERPEAS_CONTENT_LANGUAGES=${locale} " >> " ${SILVERPEAS_HOME} " /configuration/config.properties
16
16
configure=1
17
17
fi
18
- if [ -f ${SILVERPEAS_HOME} /configuration/custom_config.properties ]; then
18
+ if [ -f " ${SILVERPEAS_HOME} /configuration/custom_config.properties" ]; then
19
19
echo " -> set custom configuration from custom_config.properties"
20
- sed -e " s/DB_.*$//g" ${SILVERPEAS_HOME} /configuration/custom_config.properties > ${SILVERPEAS_HOME} /configuration/custom_config.fixed.properties
21
- cat ${SILVERPEAS_HOME} /configuration/custom_config.fixed.properties >> ${SILVERPEAS_HOME} /configuration/config.properties
22
- rm ${SILVERPEAS_HOME} /configuration/custom_config.fixed.properties
20
+ sed -e " s/DB_.*$//g" " ${SILVERPEAS_HOME} " /configuration/custom_config.properties > " ${SILVERPEAS_HOME} " /configuration/custom_config.fixed.properties
21
+ cat " ${SILVERPEAS_HOME} " /configuration/custom_config.fixed.properties >> " ${SILVERPEAS_HOME} " /configuration/config.properties
22
+ rm " ${SILVERPEAS_HOME} " /configuration/custom_config.fixed.properties
23
23
configure=1
24
24
fi
25
- if [ -f ${SILVERPEAS_HOME} /configuration/silverpeas/CustomerSettings.xml ] || [ -f ${SILVERPEAS_HOME} /configuration/silverpeas/CustomSettings.xml ]; then
25
+ if [ -f " ${SILVERPEAS_HOME} /configuration/silverpeas/CustomerSettings.xml" ] || [ -f " ${SILVERPEAS_HOME} /configuration/silverpeas/CustomSettings.xml" ]; then
26
26
echo " -> custom settings detected in CustomerSettings.xml or CustomSettings.xml"
27
27
configure=1
28
28
fi
@@ -32,10 +32,10 @@ configure_silverpeas() {
32
32
}
33
33
34
34
start_silverpeas () {
35
- ${SILVERPEAS_HOME} /bin/h2database start
35
+ " ${SILVERPEAS_HOME} " /bin/h2database start
36
36
37
37
echo " Start Silverpeas..."
38
- ${JBOSS_HOME} /bin/standalone.sh -b 0.0.0.0 -c standalone-full.xml &
38
+ " ${JBOSS_HOME} " /bin/standalone.sh -b 0.0.0.0 -c standalone-full.xml &
39
39
local pids=` jobs -p`
40
40
wait $pids
41
41
}
@@ -48,17 +48,17 @@ stop_silverpeas() {
48
48
kill $pids & > /dev/null
49
49
fi
50
50
51
- ${SILVERPEAS_HOME} /bin/h2database stop
51
+ " ${SILVERPEAS_HOME} " /bin/h2database stop
52
52
}
53
53
54
54
trap ' stop_silverpeas' SIGTERM
55
55
56
- if [ -f ${SILVERPEAS_HOME} /bin/.install ]; then
56
+ if [ -f " ${SILVERPEAS_HOME} /bin/.install" ]; then
57
57
configure_silverpeas
58
- rm ${SILVERPEAS_HOME} /bin/.install
58
+ rm " ${SILVERPEAS_HOME} " /bin/.install
59
59
fi
60
60
61
- if [ -f ${SILVERPEAS_HOME} /configuration/config.properties ] && [ ! -e ${SILVERPEAS_HOME} /bin/.install ]; then
61
+ if [ -f " ${SILVERPEAS_HOME} /configuration/config.properties" ] && [ ! -e " ${SILVERPEAS_HOME} /bin/.install" ]; then
62
62
start_silverpeas
63
63
else
64
64
echo " No ${SILVERPEAS_HOME} /configuration/config.properties found! No start!"
0 commit comments