updata install

This commit is contained in:
JackLee_CN 2022-10-25 19:06:25 +08:00
parent d07d7835df
commit 9c28a18a59

View File

@ -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/wwwroot/$name.$suffix rm -rf /opt/tmp/$name.$suffix
cd /opt/wwwroot wget --no-check-certificate -O /opt/tmp/$name.$suffix $filelink
curl -O -L $filelink /opt/wwwroot/$name.$suffix mv /opt/tmp/$name.* /opt/wwwroot/
fi fi
if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then
echo "下载未成功" echo "下载未成功"