Last active
February 3, 2021 10:48
-
-
Save cobrce/8ac55a757c2d4635f86e0d976641267a to your computer and use it in GitHub Desktop.
install + autostart radarr 3 in raspberry pi
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
wget 'https://radarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=arm' --output-document=radarr.tar.gz | |
sudo tar -xvzf radarr.tar.gz | |
sudo mkdir /opt/radarr | |
sudo cp Radarr/* /opt/radarr -r | |
sudo rm Radarr -r | |
sudo chown pi:pi -R /opt/radarr | |
sudo cat << EOF > /etc/systemd/system/radarr.service | |
[Unit] | |
Description=Radarr | |
After=network.target | |
[Service] | |
# Change and/or create the required user and group. | |
User=pi | |
Group=pi | |
# The UMask parameter controls the permissions of folders and files created. | |
#UMask=002 | |
# The -data=/path argument can be used to force the config/db folder | |
ExecStart=/opt/radarr/Radarr | |
Type=simple | |
TimeoutStopSec=20 | |
KillMode=process | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target | |
EOF | |
sudo systemctl enable radarr | |
read -p "Start Radarr? (Y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ ! $REPLY =~ ^[Nn]$ ]] | |
then | |
sudo systemctl start radarr | |
fi | |
read -p "Delete temporary downloaded files? (Y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ ! $REPLY =~ ^[Nn]$ ]] | |
then | |
sudo rm radarr.tar.gz | |
fi | |
EOF | |
sudo systemctl enable radarr | |
read -p "Start Radarr? (Y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ ! $REPLY =~ ^[Nn]$ ]] | |
then | |
sudo systemctl start radarr | |
fi | |
read -p "Delete temporary downloaded files? (Y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ ! $REPLY =~ ^[Nn]$ ]] | |
then | |
sudo rm radarr.tar.gz | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment