dromara / Jpom

🚀简而轻的低侵入式在线构建、自动部署、日常运维、项目监控软件
https://jpom.dromara.org/
Other
1.46k stars 304 forks source link

jpom-2.10.11 Service.sh 问题 #31

Closed ufoxu closed 1 year ago

ufoxu commented 1 year ago

binAbsName JAVA_HOME CLASSPATH 应该是否定判断 function install() {

if [ -f "$serviceFile" ]; then
    echo "service file already exists" 2>&2
    exit 2
fi
if [ ! -f "$binAbsName" ]; then
    echo "$binAbsName not found" 2>&2
    exit 2
fi
if [ ! -z "$JAVA_HOME" ]; then
    echo "JAVA_HOME variable not found" 2>&2
    exit 2
fi
if [ ! -z "$CLASSPATH" ]; then
    echo "CLASSPATH variable not found" 2>&2
    exit 2
fi
bwcx-jzy commented 1 year ago

是需要判断的,因为对应的变量会配置到服务中,这样服务才能使用到对应的 java 环境

bwcx-jzy commented 1 year ago

如果出现无法正常安装服务需要安装截图修改一下脚本 fec04c2af25c6c580d7265beb857870