adapt check_md5_for_changed_conf_and_ini_files() for new formal of update.conf
This commit is contained in:
parent
181af67033
commit
72f8b0b28e
@ -85,15 +85,15 @@ check_md5_for_changed_conf_and_ini_files () {
|
|||||||
readarray -td' ' files <<< "$1"
|
readarray -td' ' files <<< "$1"
|
||||||
for file in ${files[@]}; do
|
for file in ${files[@]}; do
|
||||||
if [ "$file" = "emp.conf" ]; then
|
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_update_conf=$(cat $update_conf | jq -r $json_key)
|
||||||
md5sum_repository="$(md5sum $emp_conf | awk '{ print $1}')"
|
md5sum_repository="$(md5sum $emp_conf | awk '{ print $1}')"
|
||||||
elif [ "$file" = "printer.conf" ]; then
|
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_update_conf=$(cat $update_conf | jq -r $json_key)
|
||||||
md5sum_repository="$(md5sum $printer_conf | awk '{ print $1}')"
|
md5sum_repository="$(md5sum $printer_conf | awk '{ print $1}')"
|
||||||
elif [ "$file" = "device.conf" ]; then
|
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_update_conf=$(cat $update_conf | jq -r $json_key)
|
||||||
md5sum_repository="$(md5sum $device_conf | awk '{ print $1}')"
|
md5sum_repository="$(md5sum $device_conf | awk '{ print $1}')"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user