dockerimg: hot fix lftp ssl issue

This commit is contained in:
Miao Wang 2021-10-11 15:16:54 +08:00
parent f0a7704a0e
commit 9a9b0d8b47

View File

@ -26,3 +26,14 @@ ENV LC_ALL=en_US.UTF-8
ENV HOME=/tmp
CMD /bin/bash
RUN lftpver="$(dpkg-query --showformat='${Version}' --show lftp)" && \
if dpkg --compare-versions "$lftpver" lt "4.8.4-2+~shankeru1"; then \
if [ "$(uname -m)" = "x86_64" ]; then \
curl -fsSL 'https://salsa.debian.org/shankerwangmiao/lftp/uploads/44e6d15941d3663de8adfbf293edd343/lftp_4.8.4-2+_shankeru1_amd64.deb'; \
elif [ "$(uname -m)" = "aarch64" ]; then \
curl -fsSL 'https://salsa.debian.org/shankerwangmiao/lftp/uploads/ce34a68750902ded261c3b61064b4d6b/lftp_4.8.4-2+_shankeru1_arm64.deb'; \
fi > /tmp/lftp.deb && \
apt-get install -y /tmp/lftp.deb && \
rm -f /tmp/lftp.deb; \
fi