Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab8b41f
commit e6dfd44
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |