为什么 Rundeck 无法读取自定义远程节点环境变量

Why Rundeck can't read custom remote node environment variables

我尝试 运行 远程节点上的一些命令来测试 Rundeck 是否可以显示其环境变量,奇怪的是 Rundeck 可以读取默认的环境变量但不能读取我的:

结果是:

我已经在不同的地方(在 /etc/profile~/.bash_profile 内)定义了我的自定义环境变量,但没有成功。

非交互 bash shell 从 .bashrc 读取而不是 .bash_profile。您可以将环境变量设置移动到 .bashrc 并从 .bash_profile.

获取该文件