mirror of
https://github.com/lkddi/dell-fans-controller-docker.git
synced 2026-04-29 07:27:27 +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 = "10.10.11.11" #os.getenv('HOST') │
|
||||
username = "root" #os.getenv('USERNAME') │
|
||||
password = "ddmabc123" #os.getenv('PASSWORD')
|
||||
if host is None:
|
||||
host = os.getenv('HOST', "10.10.11.11")
|
||||
username = os.getenv('USERNAME', "root")
|
||||
password = os.getenv('PASSWORD', "ddmabc123")
|
||||
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