Skip to content

Commit

Permalink
Merge pull request #530 from linuxserver/3.21-migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Jan 6, 2025
2 parents 98e22cb + f467b95 commit 7a8a360
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions root/migrations/02-swag-old-certbot-paths
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# Migrate existing confs with old paths from /etc/letsencrypt to /config/etc/letsencrypt
if [[ ! -f "/config/etc/letsencrypt/02-swag-old-certbot-paths" ]] && ls /config/etc/letsencrypt/renewal/*.conf >/dev/null 2>&1; then
sed -i 's| /etc/letsencrypt| /config/etc/letsencrypt|' /config/etc/letsencrypt/renewal/*.conf && touch /config/etc/letsencrypt/02-swag-old-certbot-paths
fi

0 comments on commit 7a8a360

Please sign in to comment.