Skip to content

Commit d901bba

Browse files
author
lacatoire
committed
relax language folder check and simplify rebuild tip
1 parent b0c9978 commit d901bba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.docker/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ if [ ! -f /var/www/doc-base/configure.php ]; then
2222
exit 1
2323
fi
2424

25-
# Check language documentation presence (must contain entities/)
26-
if [ ! -d /var/www/$LANGUAGE/entities ]; then
25+
# Check language documentation presence
26+
if [ ! -d "/var/www/$LANGUAGE" ] || [ ! -f "/var/www/$LANGUAGE/sources.xml" ]; then
2727
echo "❌ doc-${LANGUAGE} is missing or incomplete!"
2828
echo "👉 Please clone it before running Docker:"
2929
echo " git clone https://github.com/php/doc-${LANGUAGE} ../doc-${LANGUAGE}"
3030
echo ""
31-
echo "💡 Tip: remove any empty folders and recreate containers with:"
32-
echo " docker compose down --volumes && docker compose up --force-recreate"
31+
echo "💡 Tip: remove any empty folders and rebuild containers with '--force-recreate'."
3332
exit 1
3433
fi
34+
3535
done
3636
echo "✅ All prerequisites found."
3737
echo ""

0 commit comments

Comments
 (0)