Merge pull request #121 from TheSpad/unstable
This commit is contained in:
@@ -50,4 +50,4 @@ COPY root/ /
|
|||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 6881 6881/udp 8080
|
||||||
VOLUME /config /downloads
|
VOLUME /config
|
||||||
|
|||||||
@@ -50,4 +50,4 @@ COPY root/ /
|
|||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 6881 6881/udp 8080
|
||||||
VOLUME /config /downloads
|
VOLUME /config
|
||||||
|
|||||||
@@ -50,4 +50,4 @@ COPY root/ /
|
|||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 6881 6881/udp 8080
|
EXPOSE 6881 6881/udp 8080
|
||||||
VOLUME /config /downloads
|
VOLUME /config
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ mkdir -p \
|
|||||||
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
||||||
|
|
||||||
# chown download directory if currently set to root
|
# chown download directory if currently set to root
|
||||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
if [[ -d /downloads ]]; then
|
||||||
chown -R abc:abc /downloads
|
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
||||||
|
chown -R abc:abc /downloads
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
|
|||||||
Reference in New Issue
Block a user