mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
Revert "Update docker version during btcpay-update (#847)"
This reverts commit 9f865a5240
.
This commit is contained in:
parent
33cb3de205
commit
9b468dd133
24
helpers.sh
24
helpers.sh
@ -144,30 +144,6 @@ docker_update() {
|
|||||||
apt install libseccomp2 -t buster-backports
|
apt install libseccomp2 -t buster-backports
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Can't run with docker-ce before 20.10.10... check against version 21 instead, easier to compare
|
|
||||||
if [ "21" \> "$(docker version -f "{{ .Server.Version }}")" ]; then
|
|
||||||
echo "Updating docker, old version can't run some images (https://docs.linuxserver.io/FAQ/#jammy)"
|
|
||||||
echo \
|
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
||||||
"$(lsb_release -cs)" stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
|
|
||||||
apt-get update
|
|
||||||
apt-get upgrade -y docker-ce docker-ce-cli containerd.io
|
|
||||||
|
|
||||||
# Possible that old distro like xenial doesn't have it anymore, if so, just take
|
|
||||||
# the next distrib
|
|
||||||
if [ "21" \> "$(docker version -f "{{ .Server.Version }}")" ]; then
|
|
||||||
echo "Updating docker, with bionic's version"
|
|
||||||
echo \
|
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
|
||||||
bionic stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
apt-get update
|
|
||||||
apt-get upgrade -y docker-ce docker-ce-cli containerd.io
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
btcpay_up() {
|
btcpay_up() {
|
||||||
|
Loading…
Reference in New Issue
Block a user