fix: agent wget/curl 方式安装,增加忽略证书校验参数

This commit is contained in:
@changcode
2021-11-09 16:55:38 +08:00
parent 60407e60a8
commit 826d0dc59d

View File

@@ -114,10 +114,10 @@ export default {
mixins: [dataListMixin],
computed: {
wgetUrl () {
return 'wget --no-check-certificate --header="Authorization:' + this.token + '" ' + this.ipAddr + '/agent/' + this.agentParam.dc + '/' + this.agentParam.type + '/install.sh | sudo -E bash'
return 'wget -qO- --no-check-certificate --header="Authorization:' + this.token + '" ' + this.ipAddr + '/agent/' + this.agentParam.dc + '/' + this.agentParam.type + '/install.sh | sudo -E bash'
},
curlUrl () {
return 'curl -k -H "Authorization:' + this.token + '" ' + this.ipAddr + '/agent/' + this.agentParam.dc + '/' + this.agentParam.type + '/install.sh | sudo -E bash'
return 'curl -o- -k -H "Authorization:' + this.token + '" ' + this.ipAddr + '/agent/' + this.agentParam.dc + '/' + this.agentParam.type + '/install.sh | sudo -E bash'
}
},
data () {