Commit 92fcfdfc authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20140144: Job [Deploy_CHMB_UAT_136] configuration updated

Change performed by ·¨¼y°ó
parent f8367849
......@@ -125,16 +125,18 @@ sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}&lt
<hudson.tasks.Shell>
<command>sudo systemctl stop CHMB
sudo systemctl stop CHMB_Batch
rm -rf /opt/chm/chmb/lib/*
rm -rf /opt/chm/chmb/sample/*
rm -rf /opt/chm/chmb/template/*
chmb=/opt/chm/chmb
tempdir=$(mktemp -d)
7za x target/CHMB-pack.zip -o&quot;${tempdir}&quot;
rm -rf ${chmb}/lib/*
rm -rf ${chmb}/sample/*
rm -rf ${chmb}/template/*
mv -f ${tempdir}/CHMB/lib/* &quot;${chmb}/lib&quot;
mv -f ${tempdir}/CHMB/sample/* &quot;${chmb}/sample&quot;
mv -f ${tempdir}/CHMB/template/* &quot;${chmb}/template&quot;
rm -rf &quot;${tempdir}&quot;
sudo systemctl start CHMB
sudo systemctl start CHMB_Batch</command>
</hudson.tasks.Shell>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment