From ffe9668f22cd735afc5b82cde5aaf1c6eb8a0e84 Mon Sep 17 00:00:00 2001 From: nitschis <62210453+nitschis@users.noreply.github.com> Date: Fri, 28 Mar 2025 07:13:33 +0100 Subject: [PATCH] Update init-outdated-config/run Fixed grep loop, causing nginx to never start. --- root/etc/s6-overlay/s6-rc.d/init-outdated-config/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0bfe88b..ecc83ed 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,9 +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 +if grep -qr '/etc/letsencrypt' --include="*.conf" /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 + echo -n " " && grep -r '/etc/letsencrypt' --include="*.conf" /config/nginx | grep > fi