s
This commit is contained in:
@@ -56,7 +56,7 @@ def render(count: int) -> str:
|
||||
base_profile = env("NEKO_PROFILE_HOST_DIR", str(Path.cwd() / "data" / "chromium-profile-v2"))
|
||||
http_base = int(env("NEKO_HTTP_PORT", "9200"))
|
||||
mux_base = int(env("NEKO_WEBRTC_TCPMUX", "52300"))
|
||||
managed_policies = env_enabled("NEKO_MANAGED_POLICIES", False)
|
||||
managed_policies = env_enabled("NEKO_MANAGED_POLICIES", True)
|
||||
policy_dir = "./policies" if managed_policies else "./no-managed-policies"
|
||||
|
||||
lines = [
|
||||
|
||||
@@ -285,7 +285,7 @@ def verify_neko(checks: list[dict[str, Any]], env: dict[str, str], *, timeout: f
|
||||
if not env_flag(env, "ENABLE_NEKO", True):
|
||||
check(checks, "neko_enabled", "Neko enabled", True, required=False, detail="disabled")
|
||||
return
|
||||
managed_policies = env_flag(env, "NEKO_MANAGED_POLICIES", False)
|
||||
managed_policies = env_flag(env, "NEKO_MANAGED_POLICIES", True)
|
||||
docker_ok, names, err = docker_ps_names()
|
||||
check(
|
||||
checks,
|
||||
@@ -407,7 +407,7 @@ def verify_neko(checks: list[dict[str, Any]], env: dict[str, str], *, timeout: f
|
||||
check(
|
||||
checks,
|
||||
f"neko_{idx}_personal_policy_mode",
|
||||
f"{name} personal Chrome policy mode",
|
||||
f"{name} Chrome policy mode",
|
||||
bool(policy_file) if managed_policies else not bool(policy_file),
|
||||
required=True,
|
||||
detail=(
|
||||
@@ -418,7 +418,7 @@ def verify_neko(checks: list[dict[str, Any]], env: dict[str, str], *, timeout: f
|
||||
hint=(
|
||||
"NEKO_MANAGED_POLICIES=1 should mount services/neko/policies into Chrome policy dirs."
|
||||
if managed_policies
|
||||
else "Default personal mode should mount services/neko/no-managed-policies over Chrome policy dirs."
|
||||
else "Personal mode should mount services/neko/no-managed-policies over Chrome policy dirs."
|
||||
),
|
||||
)
|
||||
code, out, err2 = docker_exec(name, "supervisorctl status tampermonkey-provisioning", timeout=timeout)
|
||||
|
||||
Reference in New Issue
Block a user