Skip to content

Commit e1ece8a

Browse files
authored
Merge pull request #532 from linuxserver/more-3.21-migrations
2 parents af6a3a2 + d33df22 commit e1ece8a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

+6
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
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
77
fi

0 commit comments

Comments
 (0)