From 9d1b5f47772536173b9865d00e104d82300bdf0a Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Mon, 21 Oct 2019 11:17:15 +0800 Subject: [PATCH] 20180083: Job [Hi365_SIT_API_Deploy] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ยงรตยบ~? --- jobs/Hi365_SIT_API_Deploy/config.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jobs/Hi365_SIT_API_Deploy/config.xml b/jobs/Hi365_SIT_API_Deploy/config.xml index 439e8e41..0cde3a24 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 + -- 2.26.2