From 6c6d77e7752202140f8e89a3a40c15809fdfb10c Mon Sep 17 00:00:00 2001 From: mrhotio <26902309+mrhotio@users.noreply.github.com> Date: Mon, 22 Jan 2024 08:49:55 +0100 Subject: [PATCH] fixes --- root/app/qBittorrent.conf | 3 +++ root/etc/s6-overlay/s6-rc.d/init-setup/run | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 root/app/qBittorrent.conf diff --git a/root/app/qBittorrent.conf b/root/app/qBittorrent.conf new file mode 100644 index 000000000..41f1bad47 --- /dev/null +++ b/root/app/qBittorrent.conf @@ -0,0 +1,3 @@ +[Preferences] +WebUI\HostHeaderValidation=false +WebUI\LocalHostAuth=false diff --git a/root/etc/s6-overlay/s6-rc.d/init-setup/run b/root/etc/s6-overlay/s6-rc.d/init-setup/run index 2a0e0c6b6..35d545ec9 100644 --- a/root/etc/s6-overlay/s6-rc.d/init-setup/run +++ b/root/etc/s6-overlay/s6-rc.d/init-setup/run @@ -37,3 +37,10 @@ fi echo "Applying permissions to ${CONFIG_DIR}" chmod "=rwx" "${CONFIG_DIR}" chown hotio:hotio "${CONFIG_DIR}" + +if [[ ! -f "${CONFIG_DIR}/config/qBittorrent.conf" ]]; then + echo "Installing default \"qBittorrent.conf\"..." + mkdir -p "${CONFIG_DIR}/config" + cp "${APP_DIR}/qBittorrent.conf" "${CONFIG_DIR}/config/qBittorrent.conf" + chown hotio:hotio -R "${CONFIG_DIR}/config" +fi