mirror of https://github.com/carlospolop/PEASS-ng
Update 3_cloud.sh
Fixed an error and added an auxiliary judgment
This commit is contained in:
parent
2d68186677
commit
2f687dde18
|
@ -39,8 +39,8 @@ check_aliyun_ecs () {
|
|||
|
||||
check_tencent_cvm () {
|
||||
is_tencent_cvm="No"
|
||||
if [ "$(cat cloud.cfg | grep tencent)" ]; then
|
||||
is_tencent_cvm="Yes"
|
||||
if [ -f "/etc/cloud/cloud.cfg.d/05_logging.cfg" ] || grep -qi Tencent /etc/cloud/cloud.cfg; then
|
||||
is_tencent_cvm="Yes"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue