From 95a4d965524dd554055bf5db55781c4f3f733107 Mon Sep 17 00:00:00 2001 From: JackLee_CN <809262979@qq.com> Date: Tue, 25 Oct 2022 17:21:09 +0800 Subject: [PATCH] update download path --- onmp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/onmp.sh b/onmp.sh index 2bcfc37..9b47c46 100644 --- a/onmp.sh +++ b/onmp.sh @@ -837,9 +837,9 @@ fi if [[ ! -d "/opt/wwwroot/$webdir" ]] ; then rm -rf /opt/etc/nginx/vhost/$webdir.conf if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then - rm -rf /opt/tmp/$name.$suffix - curl -O -L $filelink /opt/tmp/$name.$suffix - mv /opt/tmp/$name.* /opt/wwwroot/ + rm -rf /opt/wwwroot/$name.$suffix + cd /opt/wwwroot + curl -O -L $filelink /opt/wwwroot/$name.$suffix fi if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then echo "下载未成功"