From 893220be953917a4b66483fae0cdd9c291bdd529 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 5 Jun 2022 21:55:01 +0200 Subject: [PATCH] added some comments; some other minor changes --- update_psa | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/update_psa b/update_psa index 9e38f84..8cd58ed 100755 --- a/update_psa +++ b/update_psa @@ -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