From 100f7834628d251afd5f543369f964afd8b1ca81 Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Sat, 23 May 2026 04:36:35 -0400 Subject: [PATCH] Development --- routlin/status.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routlin/status.py b/routlin/status.py index d2f95c5..6a70b1a 100644 --- a/routlin/status.py +++ b/routlin/status.py @@ -226,7 +226,12 @@ def check_configurations(data): non_wg = [v for v in vlans if not is_wg(v)] wg_vlans = [v for v in vlans if is_wg(v)] def file_ok(id_, name, path, severity="error", suggestion=""): - if not path.exists(): + try: + exists = path.exists() + except PermissionError: + return _problem(id_, name, "warning", + f"{path}: permission denied — run with sudo for accurate status.") + if not exists: return _problem(id_, name, severity, f"{path} does not exist.", suggestion or f"Run sudo python3 core.py --apply to create it.")