Skip to content

Commit 7a8a360

Browse files
authored
Merge pull request #530 from linuxserver/3.21-migrations
2 parents 98e22cb + f467b95 commit 7a8a360

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
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
7+
fi

0 commit comments

Comments
 (0)