summaryrefslogtreecommitdiffstats
path: root/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh')
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh b/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh
new file mode 100755
index 00000000..9e0783c5
--- /dev/null
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+. ../set_bottlenecks_rubbos_env.sh
+
+scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
+
+# Packages for TOMCAT1 install
+if true; then
+ssh $TOMCAT1_HOST "mkdir -p /bottlenecks/rubbos/rubbos_scripts/1-1-1"
+scp $scp_options ../set_bottlenecks_rubbos_env.sh $TOMCAT1_HOST:/bottlenecks/rubbos/rubbos_scripts/1-1-1
+
+ssh $TOMCAT1_HOST "mkdir -p $SOFTWARE_HOME"
+
+ssh $TOMCAT1_HOST "
+ apt-get update
+ apt-get install -y \
+ gcc \
+ g++ \
+ make
+"
+
+for i in $TOMCAT_TARBALL $JAVA_TARBALL $J2EE_TARBALL $ANT_TARBALL
+do
+ scp $scp_options $SOFTWARE_HOME/$i $TOMCAT1_HOST:$SOFTWARE_HOME/$i
+done
+
+fi
+
+# Packages for TOMCAT1 rubbos install
+if true; then
+scp $scp_options $SOFTWARE_HOME/$RUBBOS_TARBALL $TOMCAT1_HOST:$SOFTWARE_HOME/$RUBBOS_TARBALL
+scp $scp_options $SOFTWARE_HOME/flush_cache $TOMCAT1_HOST:$SOFTWARE_HOME/flush_cache
+scp $scp_options $SOFTWARE_HOME/$SYSSTAT_TARBALL $TOMCAT1_HOST:$SOFTWARE_HOME/$SYSSTAT_TARBALL
+ssh $TOMCAT1_HOST "mkdir -p $OUTPUT_HOME/rubbos_conf"
+scp $scp_options $OUTPUT_HOME/rubbos_conf/cpu_mem.sh $TOMCAT1_HOST:$OUTPUT_HOME/rubbos_conf/cpu_mem.sh
+fi
+
+# Packages for TOMCAT1 configure
+if true; then
+ssh $TOMCAT1_HOST "mkdir -p $OUTPUT_HOME/tomcat_conf"
+scp $scp_options $OUTPUT_HOME/tomcat_conf/server.xml-$HOSTNAME $TOMCAT1_HOST:$OUTPUT_HOME/tomcat_conf/server.xml-$HOSTNAME
+fi
+
+# Packages for TOMCAT1 rubbosSL configure
+if true; then
+ssh $TOMCAT1_HOST "mkdir -p $OUTPUT_HOME/rubbos_conf"
+for i in build.properties mysql.properties build.xml Config.java web.xml
+do
+ scp $scp_options $OUTPUT_HOME/rubbos_conf/$i $TOMCAT1_HOST:$OUTPUT_HOME/rubbos_conf/$i
+done
+
+ssh $TOMCAT1_HOST "mkdir -p $WORK_HOME/rubbos_files"
+scp $scp_options -r $WORK_HOME/rubbos_files/Servlets $TOMCAT1_HOST:$WORK_HOME/rubbos_files/Servlets
+fi
+