Using copy() and filter_system_files()
This commit is contained in:
		@@ -90,12 +90,18 @@ update() {
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    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"
 | 
			
		||||
        revert_customer_repository ; exit 1
 | 
			
		||||
    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
 | 
			
		||||
        # read opkg_cmds: each line respresents an opkg-command
 | 
			
		||||
        readarray opkg_commands < <(cat $opkg_cmds_file)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user