use of newly implemented functions

This commit is contained in:
Gerhard Hoffmann 2022-06-04 21:31:26 +02:00
parent cb7cb51b24
commit 24ead237cc

View File

@ -89,13 +89,13 @@ update() {
revert_customer_repository ; exit 1
fi
# TODO: implementieren, opkg pakete ausschliessen
files=$(changed_file_names)
if ! check_md5_for_changed_customer_files $files ; then
local files=$(changed_file_names)
if ! check_md5_for_changed_conf_and_ini_files "$files" ; then
log_error "$func:${LINENO}: new customer files wrong"
revert_customer_repository ; exit 1
fi
if grep -qE ".*opkg_commands.*?" <<< $files; then
# read opkg_cmds: each line respresents an opkg-command
readarray opkg_commands < <(cat $opkg_cmds_file)
@ -125,7 +125,7 @@ update() {
fi
# perform a dry-run and check if everything might work as expected.
if ! exec_opkg_no_action $opkg_c; then
if ! exec_opkg_noaction $opkg_c; then
log_error "$func:${LINENO}: "\
"opkg --noaction $opkg_c failed"
fi