mirror of
https://gitee.com/amber-ce/amber-pm
synced 2025-12-19 03:41:37 +08:00
fix: 把错误的版本号传上来了
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# 提取配置信息
|
# 提取配置信息
|
||||||
VERSION=@VERSION@-apm
|
VERSION_FEEDBACK=@VERSION@-apm
|
||||||
UUID=$(cat /etc/machine-id 2>/dev/null || echo "unknown")
|
UUID=$(cat /etc/machine-id 2>/dev/null || echo "unknown")
|
||||||
|
|
||||||
|
|
||||||
# 获取系统信息 - 不依赖 lsb_release
|
# 获取系统信息 - 不依赖 lsb_release
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
# 现代 Linux 系统使用 /etc/os-release
|
# 现代 Linux 系统使用 /etc/os-release
|
||||||
@@ -35,7 +36,7 @@ JSON_DATA=$(cat <<EOF
|
|||||||
"Distributor ID": "$DISTRIBUTOR_ID",
|
"Distributor ID": "$DISTRIBUTOR_ID",
|
||||||
"Release": "$RELEASE",
|
"Release": "$RELEASE",
|
||||||
"Architecture": "$ARCHITECTURE",
|
"Architecture": "$ARCHITECTURE",
|
||||||
"Store_Version": "$VERSION",
|
"Store_Version": "$VERSION_FEEDBACK",
|
||||||
"UUID": "$UUID",
|
"UUID": "$UUID",
|
||||||
"TIME": "$CURRENT_TIME"
|
"TIME": "$CURRENT_TIME"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user