From f836784932a7ef9d1e18e3bfec08ae241e6a17cf Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 16 Aug 2018 14:01:41 +0800 Subject: [PATCH] 20140144: Job [Deploy_CHM_SIT_131] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ·¨¼y°ó --- jobs/Deploy_CHM_SIT_131/config.xml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/jobs/Deploy_CHM_SIT_131/config.xml b/jobs/Deploy_CHM_SIT_131/config.xml index 33ea67a7..2e1a49de 100644 --- a/jobs/Deploy_CHM_SIT_131/config.xml +++ b/jobs/Deploy_CHM_SIT_131/config.xml @@ -101,9 +101,19 @@ sed -i "s/<title.*/<title ng-bind='page_title'>CRM v${ve sudo systemctl stop CRM -sudo rm -f /opt/CRM/lib/* -sudo 7za e target/CRM-pack.zip -o/opt/CRM/lib/ CRM/lib/*.* -r -y -sudo 7za e target/CRM-pack.zip -o/opt/CRM/templates/ CRM/templates/*.* -r -y + + +chm=/opt/CRM/ +tempdir=$(mktemp -d) + +sudo rm -f ${chm}/lib/* +sudo rm -rf ${chm}/templates/* + +7za x target/CRM-pack.zip -o"${tempdir}" +sudo mv -f ${tempdir}/CRM/lib/* "${chm}/lib" +sudo mv -f ${tempdir}/CRM/templates/* "${chm}/templates" +rm -rf "${tempdir}" + sudo systemctl start CRM -- 2.26.2