#!/bin/bash echo "entrypoint run..." default_hosts(){ echo "**********************start /etc/hosts*****************************************" cat /etc/hosts echo ------------------------end /etc/hosts----------------------------------------- } default_hosts echo "default-jvm: $JVM" sed -i "109i JAVA_OPTS=\"${JVM}\"" ./bin/catalina.sh sh bin/catalina.sh run