added some comments; some other minor changes
This commit is contained in:
parent
48043f78cc
commit
893220be95
@ -92,16 +92,20 @@ update() {
|
||||
local files=$(changed_file_names)
|
||||
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)
|
||||
@ -168,7 +172,7 @@ else
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user