We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e22cb commit 3aae7b5Copy full SHA for 3aae7b5
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