Disable -ask-sudo-password for security reasons
This commit is contained in:
		@@ -216,7 +216,6 @@ func (c *SlackConf) Validate() (errs []error) {
 | 
			
		||||
type ServerInfo struct {
 | 
			
		||||
	ServerName  string
 | 
			
		||||
	User        string
 | 
			
		||||
	Password    string
 | 
			
		||||
	Host        string
 | 
			
		||||
	Port        string
 | 
			
		||||
	KeyPath     string
 | 
			
		||||
@@ -232,7 +231,6 @@ type ServerInfo struct {
 | 
			
		||||
 | 
			
		||||
	// used internal
 | 
			
		||||
	LogMsgAnsiColor string // DebugLog Color
 | 
			
		||||
	SudoOpt         SudoOption
 | 
			
		||||
	Container       Container
 | 
			
		||||
	Family          string
 | 
			
		||||
}
 | 
			
		||||
@@ -253,13 +251,3 @@ type Container struct {
 | 
			
		||||
	Name        string
 | 
			
		||||
	Type        string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SudoOption is flag of sudo option.
 | 
			
		||||
type SudoOption struct {
 | 
			
		||||
 | 
			
		||||
	// echo pass | sudo -S ls
 | 
			
		||||
	ExecBySudo bool
 | 
			
		||||
 | 
			
		||||
	// echo pass | sudo sh -C 'ls'
 | 
			
		||||
	ExecBySudoSh bool
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user