Commit bf816aba authored by Xiaowu Zhang's avatar Xiaowu Zhang

we build from package not from current system

parent 72a12f9a
......@@ -19,13 +19,10 @@ version_to_list () {
# remove everything after "+" and "-", and separate numbers according to "."
python3 -c "import sys; print(list(map(int, sys.argv[1].split(\"+\")[0].split(\"-\")[0].split(\".\"))))" "$1"
}
kernel_revision_arch=$(uname -r)
# strings have to be quoted so that the file is decoded as valid json
json_metadata="{ \
\"server-group\": \"$SERVER_GROUP\", \
\"kernel-version\": $(version_to_list $(uname -v | cut -d' ' -f4)), \
\"kernel-revision\": \"${kernel_revision_arch%-*}\", \
\"mca-version\": $(version_to_list $MCA_VERSION), \
\"flb-version\": $(version_to_list $FLB_VERSION), \
\"plg-version\": $(version_to_list $PLG_VERSION), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment