mirror of
https://github.com/linuxserver/docker-qbittorrent.git
synced 2025-06-28 09:18:23 -04:00
Don't try and chown non-existent directory
This commit is contained in:
parent
05fbba3e20
commit
2bbec40d33
1 changed files with 4 additions and 2 deletions
|
@ -15,9 +15,11 @@ mkdir -p /config/qBittorrent
|
||||||
mv /config/data/qBittorrent/BT_backup/ /config/data/qBittorrent/BT_backup.old/
|
mv /config/data/qBittorrent/BT_backup/ /config/data/qBittorrent/BT_backup.old/
|
||||||
|
|
||||||
# chown download directory if currently not set to abc
|
# chown download directory if currently not set to abc
|
||||||
|
if [[ -d /downloads ]]; then
|
||||||
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
if [[ "$(stat -c '%U' /downloads)" != "abc" ]]; then
|
||||||
chown -R abc:abc /downloads
|
chown -R abc:abc /downloads
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue