update
This commit is contained in:
parent
fda92fde71
commit
68d095c990
@ -2,11 +2,11 @@
|
||||
# 青龙面板定时任务脚本 - CryptoAI加密货币分析
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR="/ql/scripts/cryptoai"
|
||||
WORKDIR="/ql/data/scripts/cryptoai"
|
||||
|
||||
# 如果目录不存在则退出
|
||||
if [ ! -d "$WORKDIR" ]; then
|
||||
echo "工作目录不存在,请先将CryptoAI项目上传到青龙容器内的 /ql/scripts/cryptoai 路径"
|
||||
echo "工作目录不存在,请先将CryptoAI项目上传到青龙容器内的 /ql/data/scripts/cryptoai 路径"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -53,9 +53,9 @@ echo "开始执行CryptoAI分析: $(date)"
|
||||
echo "=============================="
|
||||
|
||||
# 检查是否有Python虚拟环境
|
||||
if [ -d "/ql/scripts/cryptoai/venv" ]; then
|
||||
if [ -d "/ql/data/scripts/cryptoai/venv" ]; then
|
||||
echo "使用项目虚拟环境"
|
||||
source /ql/scripts/cryptoai/venv/bin/activate
|
||||
source /ql/data/scripts/cryptoai/venv/bin/activate
|
||||
fi
|
||||
|
||||
# 检查依赖是否安装
|
||||
|
||||
Loading…
Reference in New Issue
Block a user