Save As: radarr_install.sh
Run Command: sudo ./radarr_install.sh
Last active
November 26, 2022 15:46
-
-
Save cjLGH/3665fbe738b46e4d6e0b91fffe1d6325 to your computer and use it in GitHub Desktop.
Radarr Automated Install
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
#!/bin/sh -e | |
user=cjl # Change user. | |
group=cjl # Change group. | |
echo "Adding repository..." | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
apt install apt-transport-https | |
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official-stable.list | |
apt update | |
echo "Running: apt-get install -y curl mediainfo ca-certificates-mono libmono-cil-dev mono-devel" | |
apt-get install -y curl mediainfo libmono-cil-dev mono-devel | |
echo "Downloading Radarr..." | |
curl -L -O $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4 ) | |
echo "Extracting Radarr..." | |
tar -xvzf Radarr.*.linux.tar.gz -C /opt/ | |
echo "Cleaning up..." | |
rm -r Radarr.*.linux.tar.gz | |
echo "Changing ownership..." | |
chown -R $user:$group /opt/Radarr | |
echo "Creating systemd..." | |
cat >/etc/systemd/system/radarr.service <<EOL | |
[Unit] | |
Description=Radarr Daemon | |
After=syslog.target network.target | |
[Service] | |
User=$user | |
Group=$group | |
Type=simple | |
ExecStart=/usr/bin/mono --debug /opt/Radarr/Radarr.exe --nobrowser | |
TimeoutStopSec=20 | |
KillMode=process | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target | |
EOL | |
echo "Enable and Start radarr..." | |
systemctl enable radarr | |
service radarr start | |
echo "Installation complete!" |
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
#!/bin/sh -e | |
user=cjl # Change user. | |
group=cjl # Change group. | |
echo "Adding repository..." | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A$apt install apt-transport-https | |
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/so$apt update | |
echo "Running: apt-get install -y curl mediainfo ca-certificates-mono libmono-cil-dev mono-de$apt-get install -y curl mediainfo libmono-cil-dev mono-devel | |
echo "Downloading Radarr..." | |
curl -L -O $( curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz$ | |
echo "Extracting Radarr..." | |
tar -xvzf Radarr.*.linux.tar.gz -C /opt/ | |
echo "Cleaning up..." | |
rm -r Radarr.*.linux.tar.gz | |
echo "Changing ownership..." | |
chown -R $user:$group /opt/Radarr | |
echo "Creating systemd..." | |
cat >/etc/systemd/system/radarr.service <<EOL | |
[Unit] | |
Description=Radarr Daemon | |
After=syslog.target network.target | |
[Service] | |
User=$user | |
Group=$group | |
Type=simple | |
ExecStart=/usr/bin/mono --debug /opt/Radarr/Radarr.exe --nobrowser | |
TimeoutStopSec=20 | |
KillMode=process | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target | |
EOL | |
echo "Enable and Start radarr..." | |
systemctl enable radarr | |
service radarr start | |
echo "Installation complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding repository...
Executing: /tmp/apt-key-gpghome.nUHGBvb9jn/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A install apt-transport-https
gpg: "3FA7E0328081BFF6A14DA29AA6A" not a key ID: skipping
gpg: "install" not a key ID: skipping
gpg: "apt-transport-https" not a key ID: skipping