feat: improve server logging with OS type detection

- Add a log message with the remote server OS type

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2023-04-10 20:53:18 +08:00
parent 55f04f07eb
commit 87ebe720f5
+1
View File
@@ -323,6 +323,7 @@ func (p *Plugin) Exec() error {
// upload file to the tmp path
p.DestFile = fmt.Sprintf("%s%s", p.Config.TarTmpPath, p.DestFile)
p.log(host, "remote server os type is "+systemType)
// Call Scp method with file you want to upload to remote server.
p.log(host, "scp file to server.")
err = ssh.Scp(src, p.DestFile)