Skip to content

Commit

Permalink
fix(platform): miss spell of selinux validation (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu authored Jan 6, 2023
1 parent 1d481b2 commit 5b97a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/ssh/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ func FirewallEnabled(s Interface) (enabled bool, err error) {

func SelinuxEnabled(s Interface) (enabled bool, err error) {
// https://www.thegeekdiary.com/how-to-check-whether-selinux-is-enabled-or-disabled/
_, _, exist, err := s.Exec("selinuxenabled")
_, _, exit, err := s.Exec("selinuxenabled")
if err != nil {
return false, err
}
return exist == 0, nil
return exit == 0, nil
}

func CheckNFS(s Interface, server string, path string) (err error) {
Expand Down

0 comments on commit 5b97a0d

Please sign in to comment.