File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
etc/s6-overlay/s6-rc.d/init-outdated-config Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff 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."
1313fi
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
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22# shellcheck shell=bash
33
4- # Migrate existing confs with old paths from /etc/letsencrypt to /config/etc/letsencrypt
5- if [[ ! -f "/config/etc/letsencrypt/02-swag-old-certbot-paths" ]] && ls /config/etc/letsencrypt/renewal/*.conf >/dev/null 2>&1; then
6- sed -i 's| /etc/letsencrypt| /config/etc/letsencrypt|' /config/etc/letsencrypt/renewal/*.conf && touch /config/etc/letsencrypt/02-swag-old-certbot-paths
4+ # Migrate existing renewal confs with old paths from /etc/letsencrypt to /config/etc/letsencrypt
5+ if ls /config/etc/letsencrypt/renewal/*.conf >/dev/null 2>&1; then
6+ sed -i 's| /etc/letsencrypt| /config/etc/letsencrypt|' /config/etc/letsencrypt/renewal/*.conf
77fi
You can’t perform that action at this time.
0 commit comments