Update 3_cloud.sh
Fixed an error and added an auxiliary judgment
This commit is contained in:
parent
2d68186677
commit
2f687dde18
@ -39,7 +39,7 @@ check_aliyun_ecs () {
|
||||
|
||||
check_tencent_cvm () {
|
||||
is_tencent_cvm="No"
|
||||
if [ "$(cat cloud.cfg | grep tencent)" ]; then
|
||||
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
Block a user