Using copy() and filter_system_files()

This commit is contained in:
Gerhard Hoffmann 2022-06-05 16:50:25 +02:00
parent 96a8065fe0
commit 27f1a62323

View File

@ -90,12 +90,18 @@ update() {
fi fi
local files=$(changed_file_names) local files=$(changed_file_names)
local system_files=$(filter_system_files "$files") # conf/ini-files
if ! check_md5_for_changed_conf_and_ini_files "$files" ; then if ! check_md5_for_changed_conf_and_ini_files "$system_files" ; then
log_error "$func:${LINENO}: new customer files wrong" log_error "$func:${LINENO}: new customer files wrong"
revert_customer_repository ; exit 1 revert_customer_repository ; exit 1
fi fi
if ! copy $system_files; then
log_error "$func:${LINENO}: copy operation failed"
revert_customer_repository ; exit 1
fi
if grep -qE ".*opkg_commands.*?" <<< $files; then if grep -qE ".*opkg_commands.*?" <<< $files; then
# read opkg_cmds: each line respresents an opkg-command # read opkg_cmds: each line respresents an opkg-command
readarray opkg_commands < <(cat $opkg_cmds_file) readarray opkg_commands < <(cat $opkg_cmds_file)