From 72f8b0b28ef324b57d40893837f2b64da7a92c9d Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 2 Jun 2022 17:28:52 +0200 Subject: [PATCH] adapt check_md5_for_changed_conf_and_ini_files() for new formal of update.conf --- update_psa_helpers | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_psa_helpers b/update_psa_helpers index f3e2206..d25be73 100755 --- a/update_psa_helpers +++ b/update_psa_helpers @@ -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