From cc9271bc7c65f449832fc1acff478e672017268d Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sat, 3 Feb 2018 09:30:10 -0500 Subject: [PATCH] Update start.sh --- qbittorrent/start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index 9e4f3d6..58b8bdb 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -13,6 +13,10 @@ _handler() { trap _handler SIGINT SIGTERM SIGHUP +if [[ ! -e /config/qBittorrent ]]; then + mkdir -p /config/qBittorrent/config/ +fi + if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then yes | cp /etc/qbittorrent/qBittorrent.conf /config/qBittorrent/config/qBittorrent.conf chmod 755 /config/qBittorrent/config/qBittorrent.conf