Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检测actiontech-universe用户是否可访问Java #2674

Open
winfredLIN opened this issue Oct 12, 2024 · 0 comments
Open

检测actiontech-universe用户是否可访问Java #2674

winfredLIN opened this issue Oct 12, 2024 · 0 comments
Assignees
Milestone

Comments

@winfredLIN
Copy link
Collaborator

winfredLIN commented Oct 12, 2024

场景:

通常,当通过安装包解压安装java的后,会在全局变量或用户变量中设置java命令的位置,然后使用source命令使其生效。
对于用户来说,安装java的用户通常不是actiontech-universe,而是root等用户。
在Linux中,通过上述方式设置并使变量生效,是不会自动同步到其他用户中,分以下两种情况:

  1. 如果在非actiontech-universe用户下设置了用户私有变量,则actiontech-universe用户不论如何都获取不到该私有变量的值
  2. 如果在非actiontech-universe用户下设置了全局变量,则actiontech-universe用户需要重新login,或者执行source命令才会使这个新的全局变量在环境中生效。

现状:

当前,sqle的自动化配置和启动脚本,在进行java环境检查的时候,实际上是通过当前用户来检查的,而不是actiontech-universe用户,存在,当前用户访问得到java而actiontech-universe用户的情况。

需求描述(Describe)

需要增加actiontech-universe用户访问java的判断。作为预检查的一环。

实现方案

变更影响面

受影响的模块或功能

外部引用的潜在问题或风险

版本兼容性

测试建议

@winfredLIN winfredLIN changed the title 检测actiontech-universe用户是可访问java 检测actiontech-universe用户是否可访问Java Oct 12, 2024
@ColdWaterLW ColdWaterLW added this to the v3.2410.0 milestone Oct 12, 2024
@ColdWaterLW ColdWaterLW modified the milestones: v3.2410.0, v3.2411.0 Oct 28, 2024
@ColdWaterLW ColdWaterLW modified the milestones: v3.2411.0, v3.2412.0 Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants