fix: move permission bypass to settings.json to avoid warning dialog 🔧
This commit is contained in:
parent
7f40280700
commit
9566986ade
1 changed files with 3 additions and 3 deletions
|
|
@ -124,9 +124,9 @@ in
|
||||||
WorkingDirectory = "/home/danny";
|
WorkingDirectory = "/home/danny";
|
||||||
EnvironmentFile = "/etc/claude-channels/env";
|
EnvironmentFile = "/etc/claude-channels/env";
|
||||||
# claude needs a PTY; wrap with script(1). /dev/null discards the typescript.
|
# claude needs a PTY; wrap with script(1). /dev/null discards the typescript.
|
||||||
# --dangerously-skip-permissions: unattended use. Safe here because the bot
|
# Permission bypass lives in ~/.claude/settings.json (permissions.defaultMode)
|
||||||
# is paired only to danny's Telegram ID (allowFrom) on a private server.
|
# — using the CLI flag triggers an interactive warning dialog at startup.
|
||||||
ExecStart = ''${pkgs.util-linux}/bin/script -qfc "${pkgs.claude-code}/bin/claude --channels plugin:telegram@claude-plugins-official --dangerously-skip-permissions" /dev/null'';
|
ExecStart = ''${pkgs.util-linux}/bin/script -qfc "${pkgs.claude-code}/bin/claude --channels plugin:telegram@claude-plugins-official" /dev/null'';
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue