mirror of
https://github.com/rancher/os.git
synced 2025-08-01 23:17:50 +00:00
Ignore upgrade service uuid error
(cherry picked from commit efeaf2643a
)
This commit is contained in:
parent
f1ca662316
commit
dcbc6c414a
@ -21,7 +21,7 @@ __read_policy() {
|
|||||||
|
|
||||||
__report_activity() {
|
__report_activity() {
|
||||||
arch=`uname -m`
|
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}'`
|
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}'`
|
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
|
if [ $response -ge 200 -a $response -le 300 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user