We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f103726 commit 2b7797bCopy full SHA for 2b7797b
1 file changed
scripts/beforeInstall.sh
@@ -49,6 +49,10 @@ apt-get install tomcat9 -y
49
echo "Removing Tomcat ROOT folder"
50
rm -rf $CATALINA_HOME/webapps/ROOT
51
52
+echo 'Setting Tomcat to run as ubuntu user'
53
+sed 's/User=tomcat/User=ubuntu/' -i /lib/systemd/system/tomcat9.service
54
+systemctl daemon-reload
55
+
56
echo "Add https to Tomcat server.xml"
57
sed 's/<Connector port="8080"/<Connector port="8080" scheme="https"/' -i $CATALINA_HOME/conf/server.xml
58
0 commit comments