Commit 219a4299 authored by YM-RD-AP01\ymadmin's avatar YM-RD-AP01\ymadmin

20150024: Job [Deploy_CHMB_UAT_136] configuration updated

Change performed by ¤ý«~³ó
parent a8717cd7
......@@ -126,10 +126,14 @@ sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}&lt
<command>sudo systemctl stop CHMB
sudo systemctl stop CHMB_Batch
rm -f /opt/chm/chmb/lib/*
7za e target/CHMB-pack.zip -o/opt/chm/chmb/lib/ CHMB/lib/*.* -r -y
cp -rf src/main/resources/template /opt/chm/chmb
#7za e target/CHMB-pack.zip -o/opt/chm/chmb/template/ CHMB/template/*.* -r -y
7za e target/CHMB-pack.zip -o/opt/chm/chmb/sample/ CHMB/sample/*.* -r -y
chmb=/opt/chm/chmb
tempdir=$(mktemp -d)
7za x target/CHMB-pack.zip -o &quot;${tempdir}&quot;
mv -f &quot;${tempdir}/lib/*&quot; &quot;${chmb}/lib/&quot;
mv -f &quot;${tempdir}/sample/*&quot; &quot;${chmb}/sample/&quot;
mv -f &quot;${tempdir}/template/*&quot; &quot;${chmb}/template/&quot;
mv -f &quot;${tempdir}/templates/*&quot; &quot;${chmb}/templates/&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