Hi Sławomir,

On Wed, Jul 22, 2020 at 8:52 AM Osoba <[email protected]> wrote:
> But in fact second step running Tomcat engine which initially exploding war.
> I want to optimise this step and "preparing" Tomcat deployment without start 
> it.
> Is it possible in simple way?

Yes, we're doing that for our CAS deployment running on Tomcat/Debian,
see our script below:

    # Ensure that the cas WAR always gets extracted to a fresh
deployment directory
    if [ -e /var/lib/tomcat9/webapps/ROOT ]; then
        mv /var/lib/tomcat9/webapps/ROOT/
/var/lib/tomcat9/unused-webapps/cas-$(date +%F-%H-%M)
    fi

    # Extract the CAS war
    mkdir -p /var/lib/tomcat9/webapps/ROOT/
    cd /var/lib/tomcat9/webapps/ROOT/
    jar -xvf /var/lib/tomcat9/webapps/ROOT.war
    chown -R tomcat:tomcat /var/lib/tomcat9/webapps/ROOT/

Cheers,
Moritz

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAFD1En8zp02BA6s9W4YTK%3DiF--NXrkOOjpEpgVXvmvhWdkeNCA%40mail.gmail.com.

Reply via email to