Update qbittorrent-v5-install.sh

pull/1105/head
tteckster 2 years ago committed by GitHub
parent 9ac43b915b
commit bc6e038d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      install/qbittorrent-v5-install.sh

@ -5,7 +5,6 @@
# License: MIT # License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE # https://github.com/tteck/Proxmox/raw/main/LICENSE
export DEBIAN_FRONTEND=noninteractive
if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi if [ "$VERBOSE" = "yes" ]; then set -x; STD=""; else STD="silent"; fi
silent() { "$@" > /dev/null 2>&1; } silent() { "$@" > /dev/null 2>&1; }
if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf; $STD sysctl -p; fi
@ -92,35 +91,20 @@ msg_ok "Installed Dependencies"
msg_info "Installing qbittorrent-nox" msg_info "Installing qbittorrent-nox"
$STD apt-get install -y qbittorrent-nox $STD apt-get install -y qbittorrent-nox
$STD adduser \
--system \
--shell /usr/sbin/nologin \
--group \
--disabled-password \
--home /home/qbtuser \
qbtuser
msg_ok "qbittorrent-nox" msg_ok "qbittorrent-nox"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/qbittorrent-nox.service cat <<EOF >/etc/systemd/system/qbittorrent-nox.service
[Unit] [Unit]
Description=qBittorrent-nox service for user %I Description=qBittorrent client
Documentation=man:qbittorrent-nox(1) After=network.target
Wants=network-online.target
After=local-fs.target network-online.target nss-lookup.target
[Service] [Service]
Type=simple ExecStart=/usr/bin/qbittorrent-nox --webui-port=8090
PrivateTmp=false Restart=always
User=qbtuser
ExecStart=/usr/bin/qbittorrent-nox
TimeoutStopSec=1800
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl -q daemon-reload systemctl enable -q --now qbittorrent-nox
systemctl enable --now -q qbittorrent-nox
msg_ok "Created Service" msg_ok "Created Service"
echo "export TERM='xterm-256color'" >>/root/.bashrc echo "export TERM='xterm-256color'" >>/root/.bashrc

Loading…
Cancel
Save