diff --git a/Dockerfile b/Dockerfile index 9e40a6a..e6e8ba0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ COPY extract /usr/local/bin COPY pextract /usr/local/bin RUN chmod +x /usr/local/bin/extract && chmod +x /usr/local/bin/pextract COPY . . -COPY qBittorrent.conf ./.config/qBittorrent/qBittorrent.conf COPY .netrc /root/.netrc RUN chmod 600 /usr/src/app/.netrc RUN chmod +x aria.sh diff --git a/bot/__init__.py b/bot/__init__.py index e51b2e9..91e104c 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -43,6 +43,10 @@ load_dotenv('config.env') alive = subprocess.Popen(["python3", "alive.py"]) +subprocess.run(["mkdir", "-p", "./.config/qBittorrent"]) +subprocess.run(["cp", "qBittorrent.conf", "./.config/qBittorrent/qBittorrent.conf"]) +subprocess.run(["qbittorrent-nox", "-d"]) + Interval = [] diff --git a/start.sh b/start.sh index df365ef..c7c1baa 100755 --- a/start.sh +++ b/start.sh @@ -1 +1 @@ -gunicorn wserver:start_server --bind 0.0.0.0:$PORT --worker-class aiohttp.GunicornWebWorker & qbittorrent-nox -d & ./aria.sh; python3 -m bot +gunicorn wserver:start_server --bind 0.0.0.0:$PORT --worker-class aiohttp.GunicornWebWorker & ./aria.sh; python3 -m bot