16 Commits

Author SHA1 Message Date
6e08b50e3c fix: Fix file timeout and retry processing for long transmission tasks (#13746) 2026-09-08 18:34:21 +08:00
ssongliu
45c5c5b40f fix: resolve SSH key generation issue (#13027) 2026-06-12 11:17:08 +08:00
ssongliu
8693cc17df fix: fix backup retention count not taking effect during script updates (#12896) 2026-05-29 11:41:57 +08:00
ssongliu
f5b47cf74d fix: fix ClamAV scan failure issue (#12892) 2026-05-28 18:04:29 +08:00
ssongliu
979c1588e1 fix: improve command output handling (#12837) 2026-05-26 09:33:41 +08:00
zhengkunwang223
22c3fc8c40 feat: add ai benchmark 2026-05-21 12:37:32 +08:00
ssongliu
d55982bde0 refactor: update agent and core utilities (#12621) 2026-05-21 12:35:09 +08:00
Sanjay Santhanam
b06bc0a455 fix(cmd): use exec.LookPath in Which() so detection works without external 'which' (#12651)
cmd.Which() previously shelled out to `which <name>` to determine whether
a binary was on PATH. On distributions that do not ship a `which` package
by default — Arch Linux is the canonical example, but the same applies to
several minimal container images — `which` itself is missing, so every
call to Which() returned false and 1Panel reported core dependencies
(notably Docker) as 'not installed' even when they were running normally.

Switch the primary path to Go's exec.LookPath, which uses the process
PATH directly and has no external dependency. The original shell-out is
preserved as a fallback so any environment where the agent's PATH
differs from the user's interactive shell PATH (the original reason the
shell-out existed) keeps working unchanged.

Both copies are updated (agent/utils/cmd/cmd.go and core/utils/cmd/cmd.go)
and a small unit test is added to each package to guard the regression.

Fixes #12605

Signed-off-by: Sanjay Santhanam <51058514+Sanjays2402@users.noreply.github.com>
2026-05-06 10:47:02 +08:00
CityFun
dd44fdd1f2 fix: Fixed issue with tar file failed with exist 1 (#9261) 2025-06-24 16:57:27 +08:00
CityFun
69e143845a feat: change cmd timeout handle for core (#8796) 2025-05-23 06:58:12 +00:00
ChengPlay
dafeab8704 feat: Add Node File Exchange (#8407) 2025-04-16 16:18:51 +08:00
ssongliu
d10d83b648 feat: Modify the way of creating cronjob (#8403) 2025-04-16 06:00:17 +00:00
ssongliu
c59105f050 feat: Encapsulate command execution methods (#8401) 2025-04-15 22:15:18 +08:00
ssongliu
8283cd7d02 feat: adjust internationalization errors and the positions of global … (#7767) 2025-01-24 03:00:07 +00:00
ssongliu
cd266d2567 feat: Synchronously update the firewall when modifying connection information (#7536) 2024-12-23 22:05:31 +08:00
ssongliu
2ef7b8b3b1 feat: core 功能代码拆分 2024-07-19 19:04:11 +08:00