We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98e22cb + f467b95 commit 7a8a360Copy full SHA for 7a8a360
root/migrations/02-swag-old-certbot-paths
@@ -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