Fix sudo option on Redhat like Linux, change some messages.

This commit is contained in:
kota kanbe
2016-04-12 01:14:40 +09:00
parent 3e846233a3
commit d750205f31
5 changed files with 31 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ func detectRedhat(c config.ServerInfo) (itsMe bool, red osTypeInterface) {
red = newRedhat(c)
// set sudo option flag
c.SudoOpt = config.SudoOption{ExecBySudoSh: true}
c.SudoOpt = config.SudoOption{ExecBySudo: true}
red.setServerInfo(c)
if r := sshExec(c, "ls /etc/fedora-release", noSudo); r.isSuccess() {