Revision 8927
Added by Jing Tao about 10 years ago
src/scripts/bash/install-java7-tomcat7.sh | ||
---|---|---|
15 | 15 |
OLD_TOMCAT_BASE=/var/lib/${OLD_TOMCAT} |
16 | 16 |
|
17 | 17 |
NEW_TOMCAT=tomcat7 |
18 |
NEW_TOMCAT_COMMON=${NEW_TOMCAT}-common |
|
19 |
NEW_TOMCAT_LIB=lib${NEW_TOMCAT}-java |
|
18 | 20 |
NEW_CATALINA_PROPERTIES=/etc/${NEW_TOMCAT}/catalina.properties |
19 | 21 |
NEW_TOMCAT_HOME=/usr/share/${NEW_TOMCAT} |
20 | 22 |
NEW_TOMCAT_BASE=/var/lib/${NEW_TOMCAT} |
... | ... | |
26 | 28 |
TOMCAT_CONFIG_BACKSLASH='org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true' |
27 | 29 |
INIT_START_DIR=/etc/init.d |
28 | 30 |
|
31 |
sudo /etc/init.d/apache2 stop |
|
29 | 32 |
echo "install ${NEW_JDK_PACKAGE}" |
30 | 33 |
sudo apt-get install ${NEW_JDK_PACKAGE} |
31 | 34 |
sleep 3 |
... | ... | |
36 | 39 |
sudo update-alternatives --set javaws ${NEW_JDK_HOME}/jre/bin/javaws |
37 | 40 |
|
38 | 41 |
echo "install ${NEW_TOMCAT}" |
42 |
sudo apt-get install ${NEW_TOMCAT_LIB} |
|
43 |
sudo apt-get install ${NEW_TOMCAT_COMMON} |
|
39 | 44 |
sudo apt-get install ${NEW_TOMCAT} |
40 | 45 |
echo "configure ${NEW_TOMCAT}" |
41 | 46 |
if grep -q "${TOMCAT_CONFIG_SLASH}" ${NEW_CATALINA_PROPERTIES}; then |
... | ... | |
90 | 95 |
else |
91 | 96 |
echo "$NEW_TOMCAT_BASE/$WEBAPPS/$METACAT/WEB-INF/metacat.properties doesn't eixt and the application.deployDir will NOT be updated" |
92 | 97 |
fi |
98 |
|
|
99 |
sudo /etc/init.d/apache2 start |
|
100 |
sudo /etc/init.d/tomcat7 start |
Also available in: Unified diff
Add the code install some components for installing tomcat7