-
Notifications
You must be signed in to change notification settings - Fork 16
replace war script
Tochiori Yausufmi edited this page Oct 31, 2019
·
1 revision
#!/bin/bash -xe
CORE_VER=1.7.20-SNAPSHOT
ENGINE_VER=1.5.26-SNAPSHOT
WEB_APPS=/opt/tomcat/webapps
P_REPO=https://personium.io/mvnrepo/io/personium
systemctl stop tomcat
pushd ${WEB_APPS}
rm -rf personium-*
CORE_FILE=$(curl ${P_REPO}/personium-core/${CORE_VER}/ | grep war\< | sed 's|^.*\(personium\-.*\.war\).*$|\1|')
ENGINE_FILE=$(curl ${P_REPO}/personium-engine/${ENGINE_VER}/ | grep war\< | sed 's|^.*\(personium\-.*\.war\).*$|\1|')
curl -f -o personium-core.war \
${P_REPO}/personium-core/${CORE_VER}/${CORE_FILE}
curl -f -o personium-engine.war \
${P_REPO}/personium-engine/${ENGINE_VER}/${ENGINE_FILE}
popd
systemctl start tomcat