Project

General

Profile

Actions

Task #2720

closed

Rebuild script does not evaluate changes in subdirectories

Added by Petr Fišer about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Petr Fišer
Target version:
Start date:
03/16/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

During the container startup, runscripts try to detect if there was some change on IdM additional libraries/frontend.
Presently, this mechanism does not work properly for subdirectories. The md5sum simply complains that something/ is a directory.

We should correctly check even subdirectories.

Actions #1

Updated by Petr Fišer about 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Petr Fišer
  • % Done changed from 0 to 90

Implemented in git.3a45ba3 .
I rewrote md5sum $dir/* to a combination of md5checksum on file and dir mark in case of a directory. The list of objects in directory structure is now generated by find.

Like this:

find $dir/* | while read f; do \
      if [ -d "$f" ]; then \
        echo "__dir__ $f"; \
      else \
        md5sum "$f"; \
      fi; \
    done | sort -k2 > "checksums/$hashfile.new";

Implementation branch https://github.com/bcvsolutions/czechidm-docker/tree/2720-2721-idm-rebuild-fixes .
Tested. Review needed (internal ticket #22146).

Actions #2

Updated by Petr Fišer almost 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

Review ok. Merged into develop, awaiting release.

Actions #3

Updated by Petr Fišer almost 3 years ago

  • Target version set to 10.8.2-r1
Actions #4

Updated by Petr Fišer almost 3 years ago

Released in 10.8.2-r1.

Actions #5

Updated by Petr Fišer almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF