mirror of
https://github.com/linuxserver/docker-swag.git
synced 2025-07-11 00:49:38 -04:00
Migrate existing renewal confs with old paths
This commit is contained in:
parent
98e22cb66d
commit
3aae7b50d9
1 changed files with 7 additions and 0 deletions
7
root/migrations/02-swag-old-certbot-paths
Executable file
7
root/migrations/02-swag-old-certbot-paths
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue