Task #2720
closed
Rebuild script does not evaluate changes in subdirectories
Added by Petr Fišer almost 4 years ago.
Updated over 3 years ago.
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.
- 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).
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Review ok. Merged into develop, awaiting release.
- Target version set to 10.8.2-r1
- Status changed from Resolved to Closed
Also available in: Atom
PDF