Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Jan 21, 2025
1 parent 9b094d0 commit 8835129
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (i *BaseInstance) InitConfig(ctx context.Context, e ctxt.Executor, opt Glob
// - We don't support SELinux in Enforcing mode
// - restorecon might not be available (Ubuntu doesn't install SELinux tools by default)
cmd = fmt.Sprintf("restorecon %s%s-%d.service", systemdDir, comp, port)
e.Execute(ctx, cmd, sudo)
e.Execute(ctx, cmd, sudo) //nolint

// doesn't work
if _, err := i.setTLSConfig(ctx, false, nil, paths); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cluster/spec/tispark.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (i *TiSparkMasterInstance) InitConfig(
// - We don't support SELinux in Enforcing mode
// - restorecon might not be available (Ubuntu doesn't install SELinux tools by default)
cmd = fmt.Sprintf("restorecon %s%s-%d.service", systemdDir, comp, port)
e.Execute(ctx, cmd, sudo)
e.Execute(ctx, cmd, sudo) //nolint

// transfer default config
pdList := topo.GetPDList()
Expand Down
2 changes: 1 addition & 1 deletion pkg/cluster/task/monitored_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (m *MonitoredConfig) syncMonitoredSystemConfig(ctx context.Context, exec ct
// - We don't support SELinux in Enforcing mode
// - restorecon might not be available (Ubuntu doesn't install SELinux tools by default)
cmd := fmt.Sprintf("restorecon %s%s-%d.service", systemdDir, comp, port)
exec.Execute(ctx, cmd, sudo)
exec.Execute(ctx, cmd, sudo) //nolint

return nil
}
Expand Down

0 comments on commit 8835129

Please sign in to comment.