mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-12 00:06:29 +08:00
fix: Modify the service status judgment logic (#9301)
This commit is contained in:
@@ -177,7 +177,7 @@ func executeCommand(ctx context.Context, command string, args ...string) ([]byte
|
||||
cmd.Stderr = &buf
|
||||
|
||||
if err := cmd.Run(); err != nil {
|
||||
return nil, &CommandError{
|
||||
return buf.Bytes(), &CommandError{
|
||||
Cmd: cmd.String(),
|
||||
Output: buf.String(),
|
||||
Err: err,
|
||||
|
||||
Reference in New Issue
Block a user