diff --git a/jobs/Deploy_CHMB_DEV_115/config.xml b/jobs/Deploy_CHMB_DEV_115/config.xml
index 285f7a721ccee695aea4df38a755bf1fff4d20da..71a8ac01a9990c3ef1d7c6bbd3fb55dbd519b234 100644
--- a/jobs/Deploy_CHMB_DEV_115/config.xml
+++ b/jobs/Deploy_CHMB_DEV_115/config.xml
@@ -4,13 +4,13 @@
false
-
+
ylhealth
- 1
- 1
+ -1
+ 5
-1
-1
@@ -90,32 +90,29 @@
-
- REM 取得今天的年、月、日 (自動補零)
-SETLOCAL EnableDelayedExpansion
-
-for /f "skip=1 tokens=1-6 delims= " %%a in ('wmic path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') do (
- IF NOT "%%~f"=="" (
- set /a FormattedDate=10000 * %%f + 100 * %%d + %%a
- set FormattedDate=%%f!FormattedDate:~-4,2!!FormattedDate:~-2,2!_%%b:%%c
- )
-)
-for /f "tokens=*" %%i in ('git rev-parse --short HEAD') do set VAR=%%i_%FormattedDate%
-
-"C:\Program Files\Git\usr\bin\sed" -i "s/<title.*/<title>CHM Booking Manage v%VAR%<\/title\/>/" src\main\resources\static\index.html
-
+
+ VAR=$(git rev-parse --short HEAD)_$(date +"%Y%m%d_%H%M")
+version=$(echo $GIT_BRANCH | cut -d'/' -f 3)
+sed -i "s/<title.*/<title>CHM Booking Manage v${version}_${VAR}<\/title\/>/" src/main/resources/static/index.html
+
-
- set target=E:\CHM\CHMB
-net stop CRM_HRB
-FOR /F "tokens=5 delims= " %%P IN ('netstat -a -n -o ^| findstr :50401 ^| findstr LISTEN') DO TaskKill.exe /F /PID %%P
-del %target%\lib\*.* /q
-"C:\Program Files\7-Zip\7z.exe" e target\CHMB-pack.zip -o%target%\lib CHMB\lib\*.* -r
-xcopy /Y /S src\main\resources\template\* %target%\template
-xcopy /Y /S src\main\resources\sample\* %target%\sample
-net start CRM_HRB
-
+
+ sudo systemctl stop CHMB
+
+chmb=/opt/CHMB
+tempdir=$(mktemp -d)
+7za x target/CHMB-pack.zip -o"${tempdir}"
+rm -rf ${chmb}/lib/*
+rm -rf ${chmb}/sample/*
+rm -rf ${chmb}/template/*
+mv -f ${tempdir}/CHMB/lib/* "${chmb}/lib"
+mv -f ${tempdir}/CHMB/sample/* "${chmb}/sample"
+mv -f ${tempdir}/CHMB/template/* "${chmb}/template"
+rm -rf "${tempdir}"
+
+sudo systemctl start CHMB
+
SUCCESS