Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
haikang-client
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
杨立
haikang-client
Commits
bbe17153
提交
bbe17153
authored
2月 27, 2023
作者:
yangli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除无用
上级
5a0a4e76
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
0 行增加
和
336 行删除
+0
-336
windows.xml
apq-pc-client/src/main/assembly/windows.xml
+0
-68
apq-pc-client.service
apq-pc-client/src/main/scripts/control/apq-pc-client.service
+0
-11
postinst
apq-pc-client/src/main/scripts/control/deb/postinst
+0
-5
postrm
apq-pc-client/src/main/scripts/control/deb/postrm
+0
-3
preinst
apq-pc-client/src/main/scripts/control/deb/preinst
+0
-18
prerm
apq-pc-client/src/main/scripts/control/deb/prerm
+0
-5
postinst
apq-pc-client/src/main/scripts/control/rpm/postinst
+0
-9
postrm
apq-pc-client/src/main/scripts/control/rpm/postrm
+0
-6
preinst
apq-pc-client/src/main/scripts/control/rpm/preinst
+0
-6
prerm
apq-pc-client/src/main/scripts/control/rpm/prerm
+0
-6
install.bat
apq-pc-client/src/main/scripts/windows/install.bat
+0
-88
install2.bat
apq-pc-client/src/main/scripts/windows/install2.bat
+0
-88
service.xml
apq-pc-client/src/main/scripts/windows/service.xml
+0
-13
uninstall.bat
apq-pc-client/src/main/scripts/windows/uninstall.bat
+0
-10
没有找到文件。
apq-pc-client/src/main/assembly/windows.xml
deleted
100644 → 0
浏览文件 @
5a0a4e76
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"
>
<id>
windows
</id>
<formats>
<format>
zip
</format>
</formats>
<!-- Workaround to create logs directory -->
<fileSets>
<fileSet>
<directory>
${pkg.win.dist}
</directory>
<outputDirectory>
logs
</outputDirectory>
<excludes>
<exclude>
*/**
</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>
${pkg.win.dist}/conf
</directory>
<outputDirectory>
conf
</outputDirectory>
<lineEnding>
windows
</lineEnding>
<excludes>
<exclude>
*.der
</exclude>
<exclude>
*.cer
</exclude>
<exclude>
*.pfx
</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>
${pkg.win.dist}/conf
</directory>
<outputDirectory>
conf
</outputDirectory>
<includes>
<include>
*.der
</include>
<include>
*.cer
</include>
<include>
*.pfx
</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>
${project.build.directory}/${project.build.finalName}-boot.${project.packaging}
</source>
<outputDirectory>
lib
</outputDirectory>
<destName>
apq-pc-client.jar
</destName>
</file>
<file>
<source>
${pkg.win.dist}/service.exe
</source>
<outputDirectory/>
<destName>
apq-pc-client.exe
</destName>
</file>
<file>
<source>
${pkg.win.dist}/service.xml
</source>
<outputDirectory/>
<destName>
apq-pc-client.xml
</destName>
<lineEnding>
windows
</lineEnding>
</file>
<file>
<source>
${pkg.win.dist}/install.bat
</source>
<outputDirectory/>
<lineEnding>
windows
</lineEnding>
</file>
<file>
<source>
${pkg.win.dist}/uninstall.bat
</source>
<outputDirectory/>
<lineEnding>
windows
</lineEnding>
</file>
</files>
</assembly>
apq-pc-client/src/main/scripts/control/apq-pc-client.service
deleted
100644 → 0
浏览文件 @
5a0a4e76
[Unit]
Description=apq-pc-client
After=syslog.target
[Service]
User=${pkg.user}
ExecStart=${pkg.installFolder}/bin/apq-pc-client.jar
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
apq-pc-client/src/main/scripts/control/deb/postinst
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
chown
-R
${
pkg
.user
}
:
${
pkg
.logFolder
}
chown
-R
${
pkg
.user
}
:
${
pkg
.installFolder
}
update-rc.d apq-pc-client defaults
apq-pc-client/src/main/scripts/control/deb/postrm
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
update-rc.d
-f
apq-pc-client remove
apq-pc-client/src/main/scripts/control/deb/preinst
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
if
!
getent group
${
pkg
.user
}
>
/dev/null
;
then
addgroup
--system
${
pkg
.user
}
fi
if
!
getent passwd
${
pkg
.user
}
>
/dev/null
;
then
adduser
--quiet
\
--system
\
--ingroup
${
pkg
.user
}
\
--quiet
\
--disabled-login
\
--disabled-password
\
--home
${
pkg
.installFolder
}
\
--no-create-home
\
-gecos
"Priusisiot application"
\
${
pkg
.user
}
fi
apq-pc-client/src/main/scripts/control/deb/prerm
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
if
[
-e
/var/run/apq-pc-client/apq-pc-client.pid
]
;
then
service apq-pc-client stop
fi
apq-pc-client/src/main/scripts/control/rpm/postinst
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
chown
-R
${
pkg
.user
}
:
${
pkg
.logFolder
}
chown
-R
${
pkg
.user
}
:
${
pkg
.installFolder
}
if
[
$1
-eq
1
]
;
then
# Initial installation
systemctl
--no-reload
enable
apq-pc-client.service
>
/dev/null 2>&1
||
:
fi
apq-pc-client/src/main/scripts/control/rpm/postrm
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
if
[
$1
-ge
1
]
;
then
# Package upgrade, not uninstall
systemctl try-restart apq-pc-client.service
>
/dev/null 2>&1
||
:
fi
apq-pc-client/src/main/scripts/control/rpm/preinst
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
getent group
${
pkg
.user
}
>
/dev/null
||
groupadd
-r
${
pkg
.user
}
getent passwd
${
pkg
.user
}
>
/dev/null
||
\
useradd
-d
${
pkg
.installFolder
}
-g
${
pkg
.user
}
-M
-r
${
pkg
.user
}
-s
/sbin/nologin
\
-c
"Priusisiot application"
apq-pc-client/src/main/scripts/control/rpm/prerm
deleted
100644 → 0
浏览文件 @
5a0a4e76
#!/bin/sh
if
[
$1
-eq
0
]
;
then
# Package removal, not upgrade
systemctl
--no-reload
disable
--now
apq-pc-client.service
>
/dev/null 2>&1
||
:
fi
apq-pc-client/src/main/scripts/windows/install.bat
deleted
100644 → 0
浏览文件 @
5a0a4e76
@ECHO OFF
setlocal ENABLEEXTENSIONS
@ECHO Detecting Java version installed.
:CHECK_JAVA_64
@ECHO Detecting if it is 64 bit machine
set KEY_NAME="HKEY_LOCAL_MACHINE\Software\Wow6432Node\JavaSoft\Java Runtime Environment"
set VALUE_NAME=CurrentVersion
FOR /F "usebackq skip=2 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName=%%A
set ValueType=%%B
set ValueValue=%%C
)
@ECHO CurrentVersion %ValueValue%
SET KEY_NAME="%KEY_NAME:~1,-1%\%ValueValue%"
SET VALUE_NAME=JavaHome
if defined ValueName (
FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName2=%%A
set ValueType2=%%B
set JRE_PATH2=%%C
if defined ValueName2 (
set ValueName = %ValueName2%
set ValueType = %ValueType2%
set ValueValue = %JRE_PATH2%
)
)
)
IF NOT "%JRE_PATH2%" == "" GOTO JAVA_INSTALLED
:CHECK_JAVA_32
@ECHO Detecting if it is 32 bit machine
set KEY_NAME="HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment"
set VALUE_NAME=CurrentVersion
FOR /F "usebackq skip=2 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName=%%A
set ValueType=%%B
set ValueValue=%%C
)
@ECHO CurrentVersion %ValueValue%
SET KEY_NAME="%KEY_NAME:~1,-1%\%ValueValue%"
SET VALUE_NAME=JavaHome
if defined ValueName (
FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName2=%%A
set ValueType2=%%B
set JRE_PATH2=%%C
if defined ValueName2 (
set ValueName = %ValueName2%
set ValueType = %ValueType2%
set ValueValue = %JRE_PATH2%
)
)
)
IF "%JRE_PATH2%" == "" GOTO JAVA_NOT_INSTALLED
:JAVA_INSTALLED
@ECHO Java 1.8 found!
@ECHO Installing apq-pc-client ...
%~dp0apq-pc-client.exe install
@ECHO running apq-pc-client ...
%~dp0apq-pc-client.exe start
@ECHO DONE.
GOTO END
:JAVA_NOT_INSTALLED
@ECHO Java 1.8 or above is not installed
@ECHO Please go to https://java.com/ and install Java. Then retry installation.
PAUSE
GOTO END
:END
apq-pc-client/src/main/scripts/windows/install2.bat
deleted
100644 → 0
浏览文件 @
5a0a4e76
@ECHO OFF
setlocal ENABLEEXTENSIONS
@ECHO Detecting Java version installed.
:CHECK_JAVA_64
@ECHO Detecting if it is 64 bit machine
set KEY_NAME="HKEY_LOCAL_MACHINE\Software\Wow6432Node\JavaSoft\Java Runtime Environment"
set VALUE_NAME=CurrentVersion
FOR /F "usebackq skip=2 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName=%%A
set ValueType=%%B
set ValueValue=%%C
)
@ECHO CurrentVersion %ValueValue%
SET KEY_NAME="%KEY_NAME:~1,-1%\%ValueValue%"
SET VALUE_NAME=JavaHome
if defined ValueName (
FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName2=%%A
set ValueType2=%%B
set JRE_PATH2=%%C
if defined ValueName2 (
set ValueName = %ValueName2%
set ValueType = %ValueType2%
set ValueValue = %JRE_PATH2%
)
)
)
IF NOT "%JRE_PATH2%" == "" GOTO JAVA_INSTALLED
:CHECK_JAVA_32
@ECHO Detecting if it is 32 bit machine
set KEY_NAME="HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment"
set VALUE_NAME=CurrentVersion
FOR /F "usebackq skip=2 tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName=%%A
set ValueType=%%B
set ValueValue=%%C
)
@ECHO CurrentVersion %ValueValue%
SET KEY_NAME="%KEY_NAME:~1,-1%\%ValueValue%"
SET VALUE_NAME=JavaHome
if defined ValueName (
FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueName2=%%A
set ValueType2=%%B
set JRE_PATH2=%%C
if defined ValueName2 (
set ValueName = %ValueName2%
set ValueType = %ValueType2%
set ValueValue = %JRE_PATH2%
)
)
)
IF "%JRE_PATH2%" == "" GOTO JAVA_NOT_INSTALLED
:JAVA_INSTALLED
@ECHO Java 1.8 found!
@ECHO Installing apq-pc-client ...
%~dp0apq-pc-client.exe install
@ECHO running apq-pc-client ...
%~dp0apq-pc-client.exe start
@ECHO DONE.
GOTO END
:JAVA_NOT_INSTALLED
@ECHO Java 1.8 or above is not installed
@ECHO Please go to https://java.com/ and install Java. Then retry installation.
PAUSE
GOTO END
:END
apq-pc-client/src/main/scripts/windows/service.xml
deleted
100644 → 0
浏览文件 @
5a0a4e76
<service>
<id>
apq-pc-client
</id>
<name>
apq-pc-client
</name>
<description>
apq-pc-client
</description>
<workingdirectory>
%BASE%\conf
</workingdirectory>
<logpath>
logs
</logpath>
<logmode>
rotate
</logmode>
<env
name=
"LOADER_PATH"
value=
"%BASE%\conf"
/>
<executable>
java
</executable>
<startargument>
-Dplatform=windows
</startargument>
<startargument>
-jar
</startargument>
<startargument>
%BASE%\lib\apq-pc-client.jar
</startargument>
</service>
apq-pc-client/src/main/scripts/windows/uninstall.bat
deleted
100644 → 0
浏览文件 @
5a0a4e76
@ECHO OFF
@ECHO Stopping apq-pc-client ...
net stop apq-pc-client
@ECHO Uninstalling apq-pc-client ...
%~dp0apq-pc-client.exe uninstall
@ECHO DONE.
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论