cp -a /etc/tomcat9/context.xml /etc/tomcat9/context.xml.`date -u +%Y%m%dT%H%M%S`
echo '<Context>
  <WatchedResource>WEB-INF/web.xml</WatchedResource>
  <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
  <Manager pathname="" />
  <JarScanner>
    <JarScanFilter tldScan="jstl-*.jar" tldSkip="*.jar" />
  </JarScanner>
</Context>' > /etc/tomcat9/context.xml
  • No labels