added some comments; some other minor changes

This commit is contained in:
Gerhard Hoffmann 2022-06-05 21:55:01 +02:00
parent 48043f78cc
commit 893220be95

View File

@ -90,18 +90,22 @@ update() {
fi
local files=$(changed_file_names)
local system_files=$(filter_system_files "$files") # conf/ini-files
local system_files=$(filter_system_files "$files") # conf/ini-files
# check if *.conf and/or *.ini-files have to md5-sum as denoted
# in update.conf
if ! check_md5_for_changed_conf_and_ini_files "$system_files" ; then
log_error "$func:${LINENO}: new customer files wrong"
revert_customer_repository ; exit 1
fi
# copy *.conf and/or *.ini-files to their corresponding system-directories
if ! copy $system_files; then
log_error "$func:${LINENO}: copy operation failed"
revert_customer_repository ; exit 1
fi
# check if the opkg-command-file has been changed during 'git pull'
if grep -qE ".*opkg_commands.*?" <<< $files; then
# read opkg_cmds: each line respresents an opkg-command
readarray opkg_commands < <(cat $opkg_cmds_file)
@ -165,10 +169,10 @@ else
if [ -z $IFS ]; then
IFS=$'\n'
fi
if read_config "$1" ; then
# set -x
if clone_customer_repository $repository_path ; then
if clone_customer_repository $customer_repository_path ; then
update
fi
fi