On Wed, Nov 9, 2022 at 6:05 AM Obuno <[email protected]> wrote: > > Hi Nick, > > Thanks a lot for your help. Indeed I think that the "too quick" version is > most probably what happens. > Would you qualify this as dirty (that is post compile, setup, install)? > > =================================== > systemctl stop guacd.service > systemctl stop tomcat9.service > systemctl stop mariadb.service > > FILE=/var/lib/tomcat9/webapps/guacamole/index.html > if [ -f "$FILE" ]; then > echo "$FILE exists. Skipping any actions..." > else > echo "$FILE does not exist. Deploying guacamole.war..." > /usr/bin/unzip -o /var/lib/tomcat9/webapps/guacamole.war -d > /var/lib/tomcat9/webapps/guacamole/ > /usr/bin/chown -R tomcat:tomcat /var/lib/tomcat9/webapps/guacamole/
There shouldn't be any reason to do these two steps - unzip and chown - manually. Tomcat does this on its own, both unpacking, and doing it under the correct account. I would not try to override this behavior or do it with Tomcat. If you want to force Tomcat to re-deploy the WAR, I'd suggest simply "touch"ing the WAR file, which should trigger a full redeploy of the WAR: /usr/bin/touch /var/lib/tomcat9/webapps/guacamole.war -Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
