Merge pull request #26 from sparklyballs/workdir-fix

some tidying, and fixing #25
This commit is contained in:
aptalca 2016-09-23 17:24:38 -04:00 committed by GitHub
commit 6f4e83063d
4 changed files with 14 additions and 6 deletions

View File

@ -3,6 +3,7 @@ MAINTAINER sparklyballs
# set environment variables
ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_CONFIG_HOME="/config/xdg"
# add sonarr repository
RUN \
@ -18,7 +19,7 @@ RUN \
# cleanup
apt-get clean && \
rm -rfv \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
@ -27,5 +28,5 @@ RUN \
COPY root/ /
# ports and volumes
VOLUME /config /downloads /tv
EXPOSE 8989
VOLUME /config /downloads /tv

View File

@ -65,6 +65,8 @@ Access the webui at `<your-ip>:8989`, for more information check out [Sonarr](ht
## Changelog
+ **23.09.16:** Add cd to /opt fixes redirects with althub (issue #25)
, make XDG config environment variable
+ **15.09.16:** Add libcurl3 package.
+ **09.09.16:** Add layer badges to README.
+ **27.08.16:** Add badges to README.

View File

@ -1,8 +1,9 @@
#!/usr/bin/with-contenv bash
# cleanup pid if it exists
[[ -e /config/nzbdrone.pid ]] && rm -rf /config/nzbdrone.pid
[[ -e /config/nzbdrone.pid ]] && \
rm -rf /config/nzbdrone.pid
# permissions
chown -R abc:abc /opt/NzbDrone
chown -R abc:abc \
/opt/NzbDrone

View File

@ -2,4 +2,8 @@
umask 0002
XDG_CONFIG_HOME="/config/xdg" exec s6-setuidgid abc mono /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/config
cd /opt/NzbDrone
exec \
s6-setuidgid abc mono NzbDrone.exe \
-nobrowser -data=/config