diff --git a/jobs/Hi365_SIT_API_Deploy/config.xml b/jobs/Hi365_SIT_API_Deploy/config.xml index 439e8e41fe7776a4a87567f4b8bef221e1e4a807..0cde3a24edb45751270a9a29ba8d71b4cf281917 100644 --- a/jobs/Hi365_SIT_API_Deploy/config.xml +++ b/jobs/Hi365_SIT_API_Deploy/config.xml @@ -58,6 +58,23 @@ false + + systemctl stop CRM + + +chm=/opt/CRM/ +tempdir=$(mktemp -d) + +rm -f ${chm}/lib/* +rm -rf ${chm}/templates/* + +7za x target/CRM-pack.zip -o"${tempdir}" +mv -f ${tempdir}/CRM/lib/* "${chm}/lib" +mv -f ${tempdir}/CRM/templates/* "${chm}/templates" +rm -rf "${tempdir}" + +systemctl start CRM +