Update 3_cloud.sh

Fixed an error and added an auxiliary judgment
This commit is contained in:
shadowabi 2024-02-16 00:46:58 +08:00 committed by GitHub
parent 2d68186677
commit 2f687dde18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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
}