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/
fi
===================================

Let me know,
Kind regards,
ob



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to