Bootstrap private node checkouts and operator access from the workstation

This commit is contained in:
deytenit committed 2026-11-08 12:39:49 +03:00
1 parent 702857ec0a
commit ef5be2331d
10 files changed
+616 -137

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ def _connection(ctx, *, after=None):
def _operator_access(ctx):
account = pwd.getpwnam("adam")
if account.pw_uid < 1000 or account.pw_dir != "/home/adam":
raise RuntimeError("Configure a regular adam operator account first.")
raise RuntimeError("Prepare the adam account from your workstation with scripts/bootstrap-node first.")
if pwd.getpwuid(os.getuid()).pw_name == "adam":
return _connection(ctx)
loginuid = int(Path("/proc/self/loginuid").read_text())