From 454e66f0c725695b9d3f4611fc71add14177ea62 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Sun, 20 Aug 2023 17:47:34 +0800 Subject: [PATCH] d --- config/etc/default/sshsvc.yaml | 2 +- features/cm/software.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/etc/default/sshsvc.yaml b/config/etc/default/sshsvc.yaml index 80c57291..ef502e78 100644 --- a/config/etc/default/sshsvc.yaml +++ b/config/etc/default/sshsvc.yaml @@ -28,7 +28,7 @@ sshd: maxConnNum: 20 timeout: 1800 session: multiple - mmlHome: ./mmlhome + mmlHome: /usr/local/omc/mmlhome database: type: mysql diff --git a/features/cm/software.go b/features/cm/software.go index 334e80fd..dba09bc2 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -99,7 +99,7 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) { filePrefix := fileName[:strings.Index(fileName, ".zip")] filePath := fmt.Sprintf("%s/%s", softwarePath, fileName) log.Debugf("filePath:%s filePrefix:%s softwarePath:%s", filePath, filePrefix, softwarePath) - cmd := exec.Command("unzip", "-f", filePath) + cmd := exec.Command("unzip", "-o", filePath) cmd.Dir = softwarePath out, err := cmd.CombinedOutput() log.Debugf("Exec outpout:%s", string(out))