diff --git a/tools/repo/check.d/all-tools-executable.sh b/tools/repo/check.d/00-all-tools-executable.sh similarity index 100% rename from tools/repo/check.d/all-tools-executable.sh rename to tools/repo/check.d/00-all-tools-executable.sh diff --git a/tools/repo/check.d/crontabs.sh b/tools/repo/check.d/10-crontabs.sh similarity index 100% rename from tools/repo/check.d/crontabs.sh rename to tools/repo/check.d/10-crontabs.sh diff --git a/tools/repo/check.d/20-no-commented-certbot-domains.sh b/tools/repo/check.d/20-no-commented-certbot-domains.sh new file mode 100755 index 0000000..f9b3dc4 --- /dev/null +++ b/tools/repo/check.d/20-no-commented-certbot-domains.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for dcf in servers/*/docker-compose.d/docker-compose.yml; do + if grep -e "#.*CERTBOT_DOMAINS" $dcf; then + echo "$dcf has commented out domains!" + exit 1 + fi +done \ No newline at end of file diff --git a/tools/repo/check.d/30-no-localhost-domains.sh b/tools/repo/check.d/30-no-localhost-domains.sh new file mode 100755 index 0000000..5706e28 --- /dev/null +++ b/tools/repo/check.d/30-no-localhost-domains.sh @@ -0,0 +1,8 @@ +#!/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 \ No newline at end of file diff --git a/tools/repo/check.d/docker-compose-config.sh b/tools/repo/check.d/90-docker-compose-config.sh similarity index 100% rename from tools/repo/check.d/docker-compose-config.sh rename to tools/repo/check.d/90-docker-compose-config.sh