fix(install.sh): keep local certificate when updating

This commit is contained in:
Nicolas Meienberger 2023-06-18 18:36:06 +02:00
parent 89e7bd337c
commit 9b632250a7

View File

@ -57,11 +57,17 @@ cp -r runtipi-"${LATEST_VERSION}"/templates/* ./templates
# copy from downloaded /traefik/*
if [ -d "traefik" ]; then
rm -rf traefik
mv traefik traefik_old
fi
mkdir traefik
cp -r runtipi-"${LATEST_VERSION}"/traefik/* ./traefik
if [ -d "traefik_old" && -d "traefik_old/tls" ]; then
## move old traefik TLS config to new traefik config
cp -r traefik_old/tls traefik
rm -rf traefik_old
fi
# copy from downloaded /docker-compose.yml
if [ -f "docker-compose.yml" ]; then
rm -f docker-compose.yml