Rename up.sh to up-qbittorrent.sh

This commit is contained in:
Alexandre
2021-04-06 21:58:08 +02:00
committed by GitHub
parent 52a26612be
commit 0834ff0866

View File

@@ -1,15 +0,0 @@
#!/usr/bin/with-contenv bash
WEBUI_PORT=${WEBUI_PORT:-8080}
if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
umask ${UMASK_SET}
fi
declare CONFIG
CONFIG=$(</data/qbittorrent/settings.json)
CONFIG=$(bashio::jq "${CONFIG}" ".\"bind-address-ipv4\"=\"${1}\"")
echo "${CONFIG}" > /data/qbittorrent/settings.json
exec /usr/bin/transmission-daemon --foreground --config-dir /data/transmission