From e6dfd440c75d0ddd8c82389292d5da71bb004462 Mon Sep 17 00:00:00 2001 From: Brandon Smith Date: Sat, 15 May 2021 23:17:14 +0000 Subject: [PATCH] added install-qbittorrent.sh --- install-qbittorrent.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 install-qbittorrent.sh diff --git a/install-qbittorrent.sh b/install-qbittorrent.sh new file mode 100755 index 0000000..02c1049 --- /dev/null +++ b/install-qbittorrent.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable +sudo apt update +sudo apt install -y qbittorrent-nox + +# run qBittorrent at startup +( + echo "[Unit]" + echo "Description=qBittorrent Command Line Client" + echo "After=network.target" + echo "" + echo "[Service]" + echo "# do not change to \"simple\"" + echo "Type=forking" + echo "User=bismith" + echo "Group=bismith" + echo "UMask=007" + echo "ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080" + echo "Restart=on-failure" + echo "" + echo "[Install]" + echo "WantedBy=multi-user.target" +) | sudo tee /etc/systemd/system/qbittorrent-nox.service + +sudo systemctl daemon-reload +sudo systemctl enable qbittorrent-nox.service +sudo systemctl start qbittorrent-nox.service