From e427af889f9196c5fb0baf56f8184603c109324f Mon Sep 17 00:00:00 2001 From: velivelasoma Date: Thu, 14 Nov 2024 11:24:48 +0530 Subject: [PATCH] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index fe8f7b6b..ce0645c2 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ amazon-linux-extras install java-openjdk11 -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.96/bin/apache-tomcat-9.0.96.tar.gz -tar -zxvf apache-tomcat-9.0.96.tar.gz -sed -i '56 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.96/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.97/bin/apache-tomcat-9.0.97.tar.gz +tar -zxvf apache-tomcat-9.0.97.tar.gz +sed -i '56 a\' apache-tomcat-9.0.97/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.97/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.97/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.97/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.97/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.97/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.97/bin/startup.sh