Remove unused jetty scripts 35/134535/3
authorvasraz <vasyl.razinkov@est.tech>
Wed, 10 May 2023 13:16:02 +0000 (14:16 +0100)
committerMichael Morris <michael.morris@est.tech>
Tue, 16 May 2023 15:09:28 +0000 (15:09 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ic5cf47f6df292cad5b35c854c5c8f210cc1f575d
Issue-ID: SDC-4483

catalog-fe/src/main/resources/scripts/install.sh [deleted file]
catalog-fe/src/main/resources/scripts/installJettyBase.sh [deleted file]
catalog-fe/src/main/resources/scripts/jvm.properties [deleted file]
catalog-fe/src/main/resources/scripts/startJetty.sh [deleted file]
catalog-fe/src/main/resources/scripts/updateSslParams.sh [deleted file]

diff --git a/catalog-fe/src/main/resources/scripts/install.sh b/catalog-fe/src/main/resources/scripts/install.sh
deleted file mode 100644 (file)
index 48f9a36..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-export JETTY_BASE=/home/jetty/base
-
-COMP=$1
-
-function usage() {
-       echo "$0 <fe | be>"
-}
-
-function exitOnError() {
-       if [ $1 -ne 0 ]
-       then
-               echo "Failed running task $2"
-               exit 2
-       fi
-}
-
-if [ $# -ne 1 ]
-then
-       usage
-       exit 1
-
-fi
-
-/opt/app/sdc/catalog-${COMP}/scripts/installJettyBase.sh
-exitOnError $? "installJettyBase"
-
-cd ${JETTY_BASE}
-exitOnError $? "move_to_base_dir"
-
-mkdir -p scripts
-
-cp /opt/app/sdc/catalog-${COMP}/scripts/* scripts
-exitOnError $? "copy_scripts_from_rpm"
-
-cp /opt/app/sdc/catalog-${COMP}/ext/jetty-ipaccess.xml etc
-exitOnError $? "override_jetty-ipaccess_module."
-
-cp /opt/app/sdc/catalog-${COMP}/catalog-${COMP}-*.war webapps
-exitOnError $? "copy_war"
-
-cp /opt/app/sdc/catalog-${COMP}/scripts/startJetty.sh .
-exitOnError $? "copy_startJetty"
-
-cp /opt/app/sdc/catalog-${COMP}/scripts/jvm.properties .
-exitOnError $? "copy_jvm_properties"
-
-./scripts/updateSslParams.sh ${JETTY_BASE}
-exitOnError $? "updateSslParams_script"
-
-mkdir -p ${JETTY_BASE}/config/catalog-${COMP}
-cp -r /opt/app/sdc/config/catalog-${COMP}/*.xml ${JETTY_BASE}/config/catalog-${COMP}
-exitOnError $? "copy_xml_files_to_config"
-
-cp -r /opt/app/sdc/config/catalog-${COMP}/*.yaml ${JETTY_BASE}/config/catalog-${COMP}
-exitOnError $? "copy_yaml_files_to_config"
diff --git a/catalog-fe/src/main/resources/scripts/installJettyBase.sh b/catalog-fe/src/main/resources/scripts/installJettyBase.sh
deleted file mode 100644 (file)
index 0f8ac7e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-export JETTY_HOME=/home/jetty/jetty-distribution-9.2.7.v20150116
-export JETTY_BASE=/home/jetty/base
-
-mkdir -p ${JETTY_BASE}
-mkdir -p ${JETTY_BASE}/config
-
-cd ${JETTY_BASE}
-
-java -jar $JETTY_HOME/start.jar --add-to-start=deploy
-java -jar $JETTY_HOME/start.jar --add-to-startd=http,https,logging,ipaccess
-
-cd -
diff --git a/catalog-fe/src/main/resources/scripts/jvm.properties b/catalog-fe/src/main/resources/scripts/jvm.properties
deleted file mode 100644 (file)
index 52b5134..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
--XX:MaxPermSize=256m
--Xmx1500m
--Dconfig.home=${JETTY_BASE}/config
--Dlog.home=${JETTY_BASE}/logs
--Dlogback.configurationFile=${JETTY_BASE}/config/catalog-fe/logback.xml
\ No newline at end of file
diff --git a/catalog-fe/src/main/resources/scripts/startJetty.sh b/catalog-fe/src/main/resources/scripts/startJetty.sh
deleted file mode 100644 (file)
index 074d91d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-export JETTY_HOME=/home/jetty/jetty-distribution-9.2.7.v20150116
-export JETTY_BASE=/home/jetty/base
-
-eval "jvmargs=`sed '/^#/d'  jvm.properties | paste -s -d"#"`"
-jvmargs=`echo $jvmargs | sed 's/#/ /g'`
-echo $jvmargs
-
-java  -jar $JETTY_HOME/start.jar $jvmargs $@
\ No newline at end of file
diff --git a/catalog-fe/src/main/resources/scripts/updateSslParams.sh b/catalog-fe/src/main/resources/scripts/updateSslParams.sh
deleted file mode 100644 (file)
index d9e955e..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-function usage() {
-        echo "$0 <working dir>"
-}
-
-function exitOnError() {
-        if [ $1 -ne 0 ]
-        then
-                echo "Failed running task $2"
-                exit 2
-        fi
-}
-
-if [ $# -ne 1 ]
-then
-        usage
-       if [ ${#OLDPWD} -ne 0 ]
-       then
-               cd -
-       fi
-        exit 1
-
-fi
-
-WORK_DIR=$1
-
-cd $WORK_DIR
-
-sed -i 's/\(^https.port=\)\(.*\)/\1443/g' start.d/https.ini
-exitOnError $? "update_port_in_https_ini"
-
-cd -