mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 15:35:45 +00:00
dockerimg: hot fix lftp ssl issue
This commit is contained in:
parent
f0a7704a0e
commit
9a9b0d8b47
11
Dockerfile
11
Dockerfile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user