...
Code Block |
---|
# The version to get
JT_WILDFLY_VERSION= wildfly-18.0.1.Final.05
# Stop wildfly
systemctl stop wildfly
# Move old directory
cd /home/jtel
mv wildfly-18.0.1.Final wildfly-18.0.1.Final.OLD
# retrieve and unpack required version
wget http://cdn.jtel.de/downloads/jboss/${JT_WILDFLY_VERSION}.tar.gz
tar xzf ${JT_WILDFLY_VERSION}.tar.gz
rm -f ${JT_WILDFLY_VERSION}.tar.gz
# create deployment directory and copy configs from old server
mkdir -p wildfly-18.0.1.Final/standalone/deployments
rm -f /home/jtel/wildfly-current/standalone/configuration/standalone.xml
cp wildfly-18.0.1.Final.OLD/standalone/configuration/standalone.xml wildfly-18.0.1.Final/standalone/configuration/standalone.xml
rm -f /home/jtel/wildfly-current/standalone/configuration/hazelcast.xml
cp wildfly-18.0.1.Final.OLD/standalone/configuration/hazelcast.xml wildfly-18.0.1.Final/standalone/configuration/hazelcast.xml
chown -R jtel:jtel wildfly-18.0.1.Final
# Update and start
/usr/local/bin/updatejb.sh
# Remove old package
rm -Rf wildfly-18.0.1.Final.OLD |
...