File tree 2 files changed +9
-3
lines changed
etc/s6-overlay/s6-rc.d/init-outdated-config
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
11
11
Ensure your configs are updated and remove /config/nginx/ldap.conf
12
12
If you do not use this config, simply remove it."
13
13
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
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
# shellcheck shell=bash
3
3
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
7
7
fi
You can’t perform that action at this time.
0 commit comments