We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6a3a2 commit 3b98b3aCopy full SHA for 3b98b3a
root/migrations/02-swag-old-certbot-paths
@@ -1,7 +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
+# Migrate existing renewal confs with old paths from /etc/letsencrypt to /config/etc/letsencrypt
+if ls /config/etc/letsencrypt/renewal/*.conf >/dev/null 2>&1; then
+ sed -i 's| /etc/letsencrypt| /config/etc/letsencrypt|' /config/etc/letsencrypt/renewal/*.conf
7
fi
0 commit comments