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]},
\"STEP\" : \"update_psa_${p[3]}\",
\"STEP_RESULT\" : \"${p[4]}\",
\"VERSION\" : \"${p[5]}\"
\"VERSION\" : \"$VERSION\"
}
}"
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=
{
\"VERSION_INFO\" : {
\"CREATED\":\"$(date +%Y-%m-%dT%T)\"
\"CREATED\":\"$(date +%Y-%m-%dT%T)\",
\"HASH\":\"$(compute_hash)\"
},
\"TARIFF\": {
$(<$TARIFF_CURRENT_FULL)
@ -426,13 +427,13 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
log_debug "$func:${LINENO}: data=$data EXITCODE=$EXITCODE"
echo $((echo "$data"; sleep 1) | nc localhost $APISM_DB_PORT)
# if [ $EXITCODE -eq $RC_SUCCESS ]; then
update_psa_update_succeeded $UPDATE_SUCCEEDED \
$RC_SUCCESS "psa update succeeded"
$RC_SUCCESS "psa update succeeded" $VERSION
update_psa_update_succeeded $UPDATE_ACTIVATED \
$RC_SUCCESS "psa update activated"
$RC_SUCCESS "psa update activated" $VERSION
log_info "$func:${LINENO}: success"
# fi