Update jackett-v5-install.sh

pull/1105/head
tteckster 2 years ago committed by GitHub
parent 72623c19ca
commit fc0e6258c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      install/jackett-v5-install.sh

@ -1,11 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2023 tteck # Copyright (c) 2021-2023 tteck
# Author: romka777 (Roman Gogolev) # Author: tteck (tteckster)
# 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
@ -90,29 +89,30 @@ $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Jackett" msg_info "Installing Jackett"
$STD adduser \ RELEASE=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
--system \ wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz
--shell /usr/sbin/nologin \ tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt
--group \ rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz
--disabled-password \
--home /home/jackett \
jackett
$STD cd /opt
f=Jackett.Binaries.LinuxAMDx64.tar.gz
release=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
$STD wget -Nc https://github.com/Jackett/Jackett/releases/download/$release/"$f"
$STD tar -xzf "$f"
$STD rm -f "$f"
$STD chown -R jackett:jackett Jackett
msg_ok "Installed Jackett" msg_ok "Installed Jackett"
msg_info "Creating Service" msg_info "Creating Service"
$STD cd Jackett cat <<EOF >/etc/systemd/system/jackett.service
$STD ./install_service_systemd.sh [Unit]
$STD systemctl status jackett.service Description=Jackett Daemon
After=network.target
[Service]
SyslogIdentifier=jackett
Restart=always
RestartSec=5
Type=simple
WorkingDirectory=/opt/Jackett
ExecStart=/bin/sh /opt/Jackett/jackett_launcher.sh
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now jackett.service
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