Skip to content

Commit

Permalink
added install-qbittorrent.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
VectorCell committed May 15, 2021
1 parent ab8b41f commit e6dfd44
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 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

0 comments on commit e6dfd44

Please sign in to comment.