add radarr build files
This commit is contained in:
3
build/make/radarr.mk
Normal file
3
build/make/radarr.mk
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
radarr: base
|
||||||
|
$(call script,$@)
|
||||||
|
$(call runit,$@)
|
||||||
3
build/runit/radarr
Normal file
3
build/runit/radarr
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
mono /opt/radarr/Radarr.exe --no-browser -data=$RADARR_DATA > /dev/null
|
||||||
12
build/scripts/radarr.sh
Normal file
12
build/scripts/radarr.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
## Environment
|
||||||
|
export_env RADARR_DATA /host/var/lib/radarr
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
apt_install_permanent libmono-cil-dev mediainfo
|
||||||
|
|
||||||
|
## Radarr
|
||||||
|
RADARR_TAG=$(curl -sX GET "https://api.github.com/repos/Radarr/Radarr/releases" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
||||||
|
mkdir -p /opt/radarr
|
||||||
|
wget -O /tmp/radar.tar.gz \
|
||||||
|
"https://github.com/Radarr/Radarr/releases/download/${RADARR_TAG}/Radarr.develop.${RADARR_TAG#v}.linux.tar.gz"
|
||||||
|
tar ixzf /tmp/radar.tar.gz -C /opt/radarr --strip-components=1
|
||||||
Reference in New Issue
Block a user