mirror of
https://github.com/lkddi/dell-fans-controller-docker.git
synced 2026-05-18 21:57:29 +08:00
更新Docker镜像名称为lkddi并改进环境变量处理
- 将Docker Hub仓库名从joestar817改为lkddi - 更新start.py以使用环境变量并提供默认值 - 更新README.md中的仓库信息
This commit is contained in:
@@ -7,16 +7,16 @@ from controller.logger import logger
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
host = "192.168.1.100" #os.getenv('HOST') │
|
||||
username = "root" #os.getenv('USERNAME') │
|
||||
password = "your_idrac_password" #os.getenv('PASSWORD')
|
||||
if host is None:
|
||||
host = os.getenv('HOST', "192.168.1.100")
|
||||
username = os.getenv('USERNAME', "root")
|
||||
password = os.getenv('PASSWORD', "your_idrac_password")
|
||||
if not host:
|
||||
raise RuntimeError('未设置 HOST 环境变量')
|
||||
|
||||
if username is None:
|
||||
if not username:
|
||||
raise RuntimeError('未设置 USERNAME 环境变量')
|
||||
|
||||
if password is None:
|
||||
if not password:
|
||||
raise RuntimeError('未设置 PASSWORD 环境变量')
|
||||
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user