mirror of
https://github.com/meienberger/runtipi.git
synced 2024-09-11 12:15:48 +03:00
fix(install.sh): keep local certificate when updating
This commit is contained in:
parent
89e7bd337c
commit
9b632250a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user