Files
docker-sonarr/root/etc/cont-init.d/30-config
T
2017-09-26 16:15:46 -04:00

25 lines
500 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/with-contenv bash
# cleanup any existing install
[[ -d /opt/sonarr ]] && \
rm -rf /opt/sonarr
mkdir -p /opt/sonarr
# (re)install preview version of sonarr
curl -o \
/tmp/sonarr.tar.gz -L \
"http://services.sonarr.tv/v1/download/phantom/latest?os=linux"
tar xf \
/tmp/sonarr.tar.gz -C \
/opt/sonarr --strip-components=1
rm \
/tmp/*.tar.gz
# cleanup pid if it exists
[[ -e /config/nzbdrone.pid ]] && \
rm -rf /config/nzbdrone.pid
# permissions
chown -R abc:abc \
/opt/sonarr