adapt check_md5_for_changed_conf_and_ini_files() for new formal of update.conf

This commit is contained in:
Gerhard Hoffmann 2022-06-02 17:28:52 +02:00
parent 181af67033
commit 72f8b0b28e

View File

@ -85,15 +85,15 @@ check_md5_for_changed_conf_and_ini_files () {
readarray -td' ' files <<< "$1"
for file in ${files[@]}; do
if [ "$file" = "emp.conf" ]; then
json_key=".conf.szeged.zg1.z1.etc.psa_config.emp"
json_key=".conf.szeged.zg[1].z[1].etc.psa_config.emp"
md5sum_update_conf=$(cat $update_conf | jq -r $json_key)
md5sum_repository="$(md5sum $emp_conf | awk '{ print $1}')"
elif [ "$file" = "printer.conf" ]; then
json_key=".conf.szeged.zg1.z1.etc.psa_config.printer"
json_key=".conf.szeged.zg[1].z[1].etc.psa_config.printer"
md5sum_update_conf=$(cat $update_conf | jq -r $json_key)
md5sum_repository="$(md5sum $printer_conf | awk '{ print $1}')"
elif [ "$file" = "device.conf" ]; then
json_key=".conf.szeged.zg1.z1.etc.psa_config.device"
json_key=".conf.szeged.zg[1].z[1].etc.psa_config.device"
md5sum_update_conf=$(cat $update_conf | jq -r $json_key)
md5sum_repository="$(md5sum $device_conf | awk '{ print $1}')"
else