Skip to content

Commit e0a353a

Browse files
authored
Merge pull request #15 from Novex/workaround-only-for-overlay
Don't workaround overlay bugs on non-overlay systems
2 parents beaa281 + b8bbfbe commit e0a353a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dockerfile/Caché+SSH/ccontrol-wrapper.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
# Work around a werid overlayfs bug where files don't open properly if they haven't been
44
# touched first - see the yum-ovl plugin for a similar workaround
5-
if [ "${1,,}" == "start" ]; then
5+
df / | grep -q overlay
6+
filesystemIsOverlay=$?
7+
8+
if [ "${1,,}" == "start" ] && [ $filesystemIsOverlay -eq 0 ]; then
69
find / -name CACHE.DAT -exec touch {} \;
710
fi
811

0 commit comments

Comments
 (0)