Skip to content

Commit 9b85559

Browse files
committed
fix: nginx -t collection
1 parent eb206db commit 9b85559

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/jobs/job_list.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ func JobList() []Job {
393393
Timeout: time.Second * 10,
394394
Execute: func(dc *data_collector.DataCollector, ctx context.Context, ch chan JobResult) {
395395
jobResult := JobResult{Files: make(map[string][]byte), Error: nil}
396-
command := []string{"/bin/sh", "-c", "nginx -T"}
396+
//command := []string{"/bin/sh", "-c", "nginx -T"}
397+
command := []string{"/usr/sbin/nginx", "-T"}
397398
for _, namespace := range dc.Namespaces {
398399
pods, err := dc.K8sCoreClientSet.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{})
399400
if err != nil {

0 commit comments

Comments
 (0)