chore: fix go removal issue and make script with configurable user
This commit is contained in:
@@ -66,7 +66,7 @@ func verifyCred(targetName string, cfg RaspiConfig) bool {
|
||||
}
|
||||
|
||||
func sftpUploadFile(targetName, localPath, remotePath string, cfg RaspiConfig) bool {
|
||||
const clearDirectory string = "rm /opt/akartontv/*"
|
||||
const clearDirectory string = "rm /opt/akartontv/media/*"
|
||||
|
||||
sshClient, err := createSSHClient(targetName, cfg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user