neb/tools/repo/check.d/30-no-localhost-domains.sh

8 lines
186 B
Bash
Raw Normal View History

#!/bin/sh
for f in servers/*/docker-compose.d/custom/nginx/conf.d/*.conf; do
if grep -e "server_name.*\.localhost" $f; then
echo "$f has a local server_name!"
exit 1
fi
done