1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 06:32:09 +00:00

Ignore upgrade service uuid error

(cherry picked from commit efeaf2643a)
This commit is contained in:
Jason-ZW 2019-02-11 14:07:30 +08:00 committed by niusmallnan
parent f1ca662316
commit dcbc6c414a

View File

@ -21,7 +21,7 @@ __read_policy() {
__report_activity() {
arch=`uname -m`
uuid=`cat /sys/class/dmi/id/product_uuid`
uuid=`cat /sys/class/dmi/id/product_uuid || true`
release=`ros -v | awk '{print $2}'`
response=`wget --server-response ${gateway_address}/report --header 'Accept: application/json' --header 'Content-type: application/json' --header "arch: $arch" --header "uuid: $uuid" --header "release: $release" 2>&1 | awk '/^ HTTP/{print $2}'`
if [ $response -ge 200 -a $response -le 300 ]; then