Merge pull request #120 from TheSpad/master

This commit is contained in:
Adam
2021-04-26 17:49:48 +01:00
committed by GitHub
4 changed files with 7 additions and 5 deletions

View File

@@ -50,4 +50,4 @@ COPY root/ /
# ports and volumes
EXPOSE 6881 6881/udp 8080
VOLUME /config /downloads
VOLUME /config

View File

@@ -50,4 +50,4 @@ COPY root/ /
# ports and volumes
EXPOSE 6881 6881/udp 8080
VOLUME /config /downloads
VOLUME /config

View File

@@ -50,4 +50,4 @@ COPY root/ /
# ports and volumes
EXPOSE 6881 6881/udp 8080
VOLUME /config /downloads
VOLUME /config

View File

@@ -15,8 +15,10 @@ mkdir -p /config/qBittorrent
mv /config/data/qBittorrent/BT_backup/ /config/data/qBittorrent/BT_backup.old/
# chown download directory if currently not set to abc
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
chown -R abc:abc /downloads
if [[ -d /downloads ]]; then
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
chown -R abc:abc /downloads
fi
fi
# permissions