From e0eaa58c85c0ce0cda1b0002ca03c39622199ace Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Mon, 22 Apr 2024 21:29:59 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:=20=E4=BF=AE=E6=94=B9install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/install.sh | 8 +------- daemon/Douyin_TikTok_Download_API.service | 2 +- start.sh | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/bash/install.sh b/bash/install.sh index 7b368ec..c43da95 100644 --- a/bash/install.sh +++ b/bash/install.sh @@ -24,13 +24,7 @@ git clone https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git cd Douyin_TikTok_Download_API/ || exit -apt install python3.11-venv - -python3 -m venv venv - -source venv/bin/activate - -pip install -r requirements.txt +pip install -r requirements.txt --break-system-packages echo 'Add Douyin_TikTok_Download_API to system service' diff --git a/daemon/Douyin_TikTok_Download_API.service b/daemon/Douyin_TikTok_Download_API.service index b793e5a..40b6985 100644 --- a/daemon/Douyin_TikTok_Download_API.service +++ b/daemon/Douyin_TikTok_Download_API.service @@ -7,7 +7,7 @@ Type=simple User=root Group=root WorkingDirectory=/www/wwwroot/Douyin_TikTok_Download_API -ExecStart=/www/wwwroot/Douyin_TikTok_Download_API/venv/bin/python3 start.py +ExecStart=python3 start.py Restart=always [Install] diff --git a/start.sh b/start.sh index 0281187..213c870 100644 --- a/start.sh +++ b/start.sh @@ -1,3 +1,3 @@ #!/bin/sh -/www/wwwroot/Douyin_TikTok_Download_API/venv/bin/python3 start.py +python3 start.py