fix: increase grep lines for user directive check in verification script

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-09 12:11:02 +02:00
parent 30c36a5fb0
commit 64b7d49056
@@ -57,7 +57,7 @@ else
echo -e " ${GREEN}${NC} docker-compose.yml exists" echo -e " ${GREEN}${NC} docker-compose.yml exists"
# Check for user directive in services # Check for user directive in services
if grep -A 10 "services:" "$compose_file" | grep -q "user:"; then if grep -A 20 "services:" "$compose_file" | grep -q "user:"; then
echo -e " ${GREEN}${NC} Services configured with non-root user directive" echo -e " ${GREEN}${NC} Services configured with non-root user directive"
else else
echo -e " ${RED}${NC} No user directive found in docker-compose.yml" echo -e " ${RED}${NC} No user directive found in docker-compose.yml"