Skip to content

Commit d33df22

Browse files
committed
Try and warn about confs looking at /etc for certs
1 parent 3b98b3a commit d33df22

File tree

1 file changed

+6
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-outdated-config

1 file changed

+6
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-outdated-config/run

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ if [[ -f /config/nginx/ldap.conf ]]; then
1111
Ensure your configs are updated and remove /config/nginx/ldap.conf
1212
If you do not use this config, simply remove it."
1313
fi
14+
if grep -qrle ' /etc/letsencrypt' /config/nginx; then
15+
echo " The following nginx confs are using certificates from the obsolete location
16+
/etc/letsencrypt and should be updated to point to /config/etc/letsencrypt
17+
"
18+
echo -n " " && grep -rle ' /etc/letsencrypt' /config/nginx
19+
fi

0 commit comments

Comments
 (0)