From d33df2224b410f3d05ad7aaa0d407d07b4bd5110 Mon Sep 17 00:00:00 2001 From: thespad Date: Tue, 7 Jan 2025 10:15:49 +0000 Subject: [PATCH] Try and warn about confs looking at /etc for certs --- root/etc/s6-overlay/s6-rc.d/init-outdated-config/run | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/etc/s6-overlay/s6-rc.d/init-outdated-config/run b/root/etc/s6-overlay/s6-rc.d/init-outdated-config/run index 42f3ad1..0bfe88b 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-outdated-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-outdated-config/run @@ -11,3 +11,9 @@ if [[ -f /config/nginx/ldap.conf ]]; then Ensure your configs are updated and remove /config/nginx/ldap.conf If you do not use this config, simply remove it." fi +if grep -qrle ' /etc/letsencrypt' /config/nginx; then + echo " The following nginx confs are using certificates from the obsolete location + /etc/letsencrypt and should be updated to point to /config/etc/letsencrypt + " + echo -n " " && grep -rle ' /etc/letsencrypt' /config/nginx +fi