Merge branch 'preview' into pipeline-preview

This commit is contained in:
aptalca 2019-01-28 17:41:03 -05:00 committed by GitHub
commit 3bf3c96e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 7 deletions

View File

@ -7,7 +7,7 @@ ARG SONARR_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# set environment variables
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_CONFIG_HOME="/config/xdg"
ENV SONARR_BRANCH="phantom-develop"
@ -41,4 +41,4 @@ COPY root/ /
# ports and volumes
EXPOSE 8989
VOLUME /config /downloads /tv
VOLUME /config

View File

@ -1,9 +1,24 @@
#!/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&version=3"
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
[[ -e /config/sonarr.pid ]] && \
rm -rf /config/sonarr.pid
# permissions
chown -R abc:abc \
/opt/NzbDrone
/opt/sonarr

View File

@ -2,8 +2,8 @@
umask 022
cd /opt/NzbDrone || exit
cd /opt/sonarr || exit
exec \
s6-setuidgid abc mono --debug NzbDrone.exe \
s6-setuidgid abc mono --debug Sonarr.exe \
-nobrowser -data=/config