mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-27 08:49:56 -04:00
Restore qbittorrent-cli
This commit is contained in:
parent
fe0e7b895a
commit
5f06988083
4 changed files with 40 additions and 0 deletions
12
Dockerfile
12
Dockerfile
|
@ -31,6 +31,18 @@ RUN \
|
|||
fi && \
|
||||
apk add -U --upgrade --no-cache \
|
||||
qbittorrent-nox==${QBITTORRENT_VERSION} && \
|
||||
echo "***** install qbitorrent-cli ****" && \
|
||||
mkdir /qbt && \
|
||||
if [ -z ${QBT_CLI_VERSION+x} ]; then \
|
||||
QBT_CLI_VERSION=$(curl -sL "https://api.github.com/repos/fedarovich/qbittorrent-cli/releases/latest" \
|
||||
| jq -r '. | .tag_name'); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/qbt.tar.gz -L \
|
||||
"https://github.com/fedarovich/qbittorrent-cli/releases/download/${QBT_CLI_VERSION}/qbt-linux-alpine-x64-${QBT_CLI_VERSION#v}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/qbt.tar.gz -C \
|
||||
/qbt && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
|
|
|
@ -31,6 +31,18 @@ RUN \
|
|||
fi && \
|
||||
apk add -U --upgrade --no-cache \
|
||||
qbittorrent-nox==${QBITTORRENT_VERSION} && \
|
||||
echo "***** install qbitorrent-cli ****" && \
|
||||
mkdir /qbt && \
|
||||
if [ -z ${QBT_CLI_VERSION+x} ]; then \
|
||||
QBT_CLI_VERSION=$(curl -sL "https://api.github.com/repos/fedarovich/qbittorrent-cli/releases/latest" \
|
||||
| jq -r '. | .tag_name'); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/qbt.tar.gz -L \
|
||||
"https://github.com/fedarovich/qbittorrent-cli/releases/download/${QBT_CLI_VERSION}/qbt-linux-alpine-x64-${QBT_CLI_VERSION#v}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/qbt.tar.gz -C \
|
||||
/qbt && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
|
|
|
@ -62,6 +62,7 @@ app_setup_block: |
|
|||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "17.07.24:", desc: "Restore qbittorrent-cli as it now supports openssl 3." }
|
||||
- { date: "25.05.24:", desc: "Remove qbittorrent-cli as it still requires openssl 1.1 which is EOL." }
|
||||
- { date: "14.02.24:", desc: "Only set/override torrenting port if the optional env var is set." }
|
||||
- { date: "14.02.24:", desc: "Add torrenting port support." }
|
||||
|
|
15
root/usr/bin/qbt
Executable file
15
root/usr/bin/qbt
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# qbt bash wrapper to prompt user when trying to save password
|
||||
if [[ "$@" == "settings set password" ]]; then
|
||||
echo "Setting password is not supported"
|
||||
echo "Please use --ask-for-password or --password"
|
||||
elif [[ "$@" == "settings set"* ]]; then
|
||||
/qbt/qbt "$@"
|
||||
elif [[ "$@" != *"--ask-for-password"* ]] && [[ "$@" != *"--password"* ]];then
|
||||
echo "Please use --ask-for-password or --password and ensure username/url are set"
|
||||
/qbt/qbt "$@"
|
||||
else
|
||||
/qbt/qbt "$@"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue