update download path
This commit is contained in:
parent
9845ec9310
commit
95a4d96552
6
onmp.sh
6
onmp.sh
@ -837,9 +837,9 @@ fi
|
|||||||
if [[ ! -d "/opt/wwwroot/$webdir" ]] ; then
|
if [[ ! -d "/opt/wwwroot/$webdir" ]] ; then
|
||||||
rm -rf /opt/etc/nginx/vhost/$webdir.conf
|
rm -rf /opt/etc/nginx/vhost/$webdir.conf
|
||||||
if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then
|
if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then
|
||||||
rm -rf /opt/tmp/$name.$suffix
|
rm -rf /opt/wwwroot/$name.$suffix
|
||||||
curl -O -L $filelink /opt/tmp/$name.$suffix
|
cd /opt/wwwroot
|
||||||
mv /opt/tmp/$name.* /opt/wwwroot/
|
curl -O -L $filelink /opt/wwwroot/$name.$suffix
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then
|
if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then
|
||||||
echo "下载未成功"
|
echo "下载未成功"
|
||||||
|
Loading…
Reference in New Issue
Block a user