oraclebase / vagrant

Vagrant Builds
https://oracle-base.com/
GNU General Public License v3.0
194 stars 169 forks source link

default: sed: can't read /home/oracle/scripts/server.xml: No such file or directory #23

Closed mark-lancaster closed 3 years ago

mark-lancaster commented 3 years ago

Getting the following error for new ol8_19 and ol7_19 VMs.

Screen Shot 2021-06-19 at 12 49 38 pm

I think the following lines in ords_software_installation.sh should be modified from: sed -i -e "s|###AJP_SECRET###|${AJP_SECRET}|g" ${SCRIPTS_DIR}/server.xml sed -i -e "s|###AJP_ADDRESS###|${AJP_ADDRESS}|g" ${SCRIPTS_DIR}/server.xml

to: sed -i -e "s|###AJP_SECRET###|${AJP_SECRET}|g" ${CATALINA_BASE}/conf/server.xml sed -i -e "s|###AJP_ADDRESS###|${AJP_ADDRESS}|g" ${CATALINA_BASE}/conf/server.xml

Impacts multiple VMs

oraclebase commented 3 years ago

Thanks for the heads-up. You are correct, and I've fixed it now.

It's a bad copy/paste from my Docker builds. In the Docker builds I copy all scripts into the image, then process them before moving them to the CATALINA_BASE. The Vagrant build is a little different and I screwed up when updating it.

That's fixed on all the builds that include Tomcat+ORDS now.

Cheers

Tim...