mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
i18n 修复
Makefile 添加 run-nogpio run-build 便于测试和构建发布 对于 docker 环境的适配
This commit is contained in:
@@ -31,6 +31,7 @@ from ....yamlconf.loader import load_yaml_file
|
||||
|
||||
from .... import tools
|
||||
from .... import aiotools
|
||||
from .... import env
|
||||
|
||||
from .. import sysunit
|
||||
|
||||
@@ -87,6 +88,8 @@ class ExtrasInfoSubmanager(BaseInfoSubmanager):
|
||||
(extra["enabled"], extra["started"]) = await sui.get_status(daemon)
|
||||
except Exception as err:
|
||||
get_logger(0).error("Can't get info about the service %r: %s", daemon, tools.efmt(err))
|
||||
if os.path.exists("/etc/kvmd/.docker_flag"):
|
||||
extra["enabled"] = extra["started"] = True
|
||||
|
||||
def __rewrite_app_port(self, extra: dict) -> None:
|
||||
port_path = extra.get("port", "")
|
||||
|
||||
Reference in New Issue
Block a user