sign
This commit is contained in:
@@ -53,7 +53,7 @@ omc:
|
|||||||
dn: 4600
|
dn: 4600
|
||||||
chk2ne: false
|
chk2ne: false
|
||||||
sn: 13750650
|
sn: 13750650
|
||||||
checksign: false
|
checksign: true
|
||||||
backup: /usr/local/omc/backup
|
backup: /usr/local/omc/backup
|
||||||
upload: /usr/local/omc/upload
|
upload: /usr/local/omc/upload
|
||||||
frontUpload: /usr/local/omc/htdocs/front/upload
|
frontUpload: /usr/local/omc/htdocs/front/upload
|
||||||
@@ -63,6 +63,7 @@ omc:
|
|||||||
checkContentType: false
|
checkContentType: false
|
||||||
testMode: true
|
testMode: true
|
||||||
rbacMode: true
|
rbacMode: true
|
||||||
|
runDir: /usr/local/omc/run
|
||||||
|
|
||||||
# Alarm module setting
|
# Alarm module setting
|
||||||
# Forward interface:
|
# Forward interface:
|
||||||
@@ -91,6 +92,8 @@ auth:
|
|||||||
token: true
|
token: true
|
||||||
expires: 1800
|
expires: 1800
|
||||||
session: multiple
|
session: multiple
|
||||||
|
publicKey: /usr/local/omc/etc/certs/omc_pub.key
|
||||||
|
privateKey: /usr/local/omc/etc/certs/omc_pri.key
|
||||||
|
|
||||||
# Parameter for limit number
|
# Parameter for limit number
|
||||||
# rmuid_maxnum: the max number of rmUID, default: 50
|
# rmuid_maxnum: the max number of rmUID, default: 50
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ sshd:
|
|||||||
maxConnNum: 20
|
maxConnNum: 20
|
||||||
timeout: 1800
|
timeout: 1800
|
||||||
session: multiple
|
session: multiple
|
||||||
|
mmlHome: ./mmlhome
|
||||||
|
|
||||||
database:
|
database:
|
||||||
type: mysql
|
type: mysql
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filePrefix := fileName[:strings.Index(fileName, ".zip")]
|
filePrefix := fileName[:strings.Index(fileName, ".zip")]
|
||||||
|
|
||||||
filePath := fmt.Sprintf("%s/%s", softwarePath, fileName)
|
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", "-f", filePath)
|
||||||
cmd.Dir = softwarePath
|
cmd.Dir = softwarePath
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
|
|||||||
Reference in New Issue
Block a user