The ultimate goal is to be able to create AWS instances and install Lucee and our applications, via script - so that we can add / remove instances, adhoc.
I am trying to copy an existing scheduler.xml that I have into a new install. But am having a “path” issue.
I can successfully install Java/Tomcat/nginx/Lucee/etc via shell scripts.
Everything works via localhost.
Everything (lucee admin) works via domain name / remote.
The issue I am having is that I cannot (seemingly) work out the path to the “web” admin root directory to copy the file into.
Lucee admin shows the following;
Where the first 4 are Tomcat end-points and the last is for Lucee Admin.
But because I am doing this via script, how do I retrieve the
1a456059fdd36b8560052cb5a2490e92 value, so I can use it in a script as the destination directory?
Similarly I wouldn’t mind knowing if I can change it programmatically?
I know the
lucee-server.xml has a section labels, so I can make the context more human readable - but even if I am going to
sed the XML and create a label(s) - I still need to know how to get the original value - to make it “nice”.
The Lucee admin states that it is normally the MD5 hash of the webroot and so I have tried;
echo /usr/share/tomcat/apache-tomcat-9.0.59/webapps/ROOT | md5sum echo /usr/share/tomcat/apache-tomcat-9.0.59/webapps/ROOT/ | md5sum
as the admin reports the webroot be - but the value returned is not a match.
I have also tried the actual webroot which is actually in ‘/opt/lucee/config/web’
echo /opt/lucee/config/web | md5sum echo /opt/lucee/config/web/ | md5sum
but they don’t match either.
I have tried using with a hostname, with localhost, with a http and https protocol - and I can’t produce a MD5 hash that matches.
I assume - that the MD5 hash produced by Lucee and that produced by CentOS7 - create different values for the same strings? - But this is just a guess as I am not 100 certain of what I should be feeding to
As always - Thanks to everyone for your ongoing help.
Don’t forget to tell us about your stack!
OS: AWS Linux 2
Java Version: 11
Tomcat Version: 9.0.59
Lucee Version: 18.104.22.168