Skip to content

Instantly share code, notes, and snippets.

@cjLGH
Last active November 26, 2022 15:46
Show Gist options
  • Save cjLGH/3665fbe738b46e4d6e0b91fffe1d6325 to your computer and use it in GitHub Desktop.
Save cjLGH/3665fbe738b46e4d6e0b91fffe1d6325 to your computer and use it in GitHub Desktop.
Radarr Automated Install

Automated Install (Radarr)

Save As: radarr_install.sh
Run Command: sudo ./radarr_install.sh

#!/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!"
#!/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!"
@Arn0m
Copy link

Arn0m commented Jul 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment