fix: increase grep lines for user directive check in verification script
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user