Added HASH and VERSION

This commit is contained in:
Gerhard Hoffmann 2022-06-02 16:02:38 +02:00
parent a884019431
commit ec660a9fad

View File

@ -362,7 +362,7 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
\"RESULTCODE\" : ${p[2]}, \"RESULTCODE\" : ${p[2]},
\"STEP\" : \"update_psa_${p[3]}\", \"STEP\" : \"update_psa_${p[3]}\",
\"STEP_RESULT\" : \"${p[4]}\", \"STEP_RESULT\" : \"${p[4]}\",
\"VERSION\" : \"${p[5]}\" \"VERSION\" : \"$VERSION\"
} }
}" }"
log_debug "$func:${LINENO}: data=$data" log_debug "$func:${LINENO}: data=$data"
@ -378,7 +378,8 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
local data="#M=APISM#C=CMD_SENDVERSION#J= local data="#M=APISM#C=CMD_SENDVERSION#J=
{ {
\"VERSION_INFO\" : { \"VERSION_INFO\" : {
\"CREATED\":\"$(date +%Y-%m-%dT%T)\" \"CREATED\":\"$(date +%Y-%m-%dT%T)\",
\"HASH\":\"$(compute_hash)\"
}, },
\"TARIFF\": { \"TARIFF\": {
$(<$TARIFF_CURRENT_FULL) $(<$TARIFF_CURRENT_FULL)
@ -429,10 +430,10 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
# if [ $EXITCODE -eq $RC_SUCCESS ]; then # if [ $EXITCODE -eq $RC_SUCCESS ]; then
update_psa_update_succeeded $UPDATE_SUCCEEDED \ update_psa_update_succeeded $UPDATE_SUCCEEDED \
$RC_SUCCESS "psa update succeeded" $RC_SUCCESS "psa update succeeded" $VERSION
update_psa_update_succeeded $UPDATE_ACTIVATED \ update_psa_update_succeeded $UPDATE_ACTIVATED \
$RC_SUCCESS "psa update activated" $RC_SUCCESS "psa update activated" $VERSION
log_info "$func:${LINENO}: success" log_info "$func:${LINENO}: success"
# fi # fi