Actions
Task #2720
closedRebuild script does not evaluate changes in subdirectories
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.
Updated by Petr Fišer over 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).
Updated by Petr Fišer over 3 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Review ok. Merged into develop, awaiting release.
Actions