fix(install.sh): keep local certificate when updating
This commit is contained in:
parent
077977bab1
commit
f31b312c2d
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue