Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Jan 22, 2024
1 parent 1fa8ab0 commit 6c6d77e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions root/app/qBittorrent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Preferences]
WebUI\HostHeaderValidation=false
WebUI\LocalHostAuth=false
7 changes: 7 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-setup/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6c6d77e

Please sign in to comment.