fix: update nginx installation command to install the latest version
This commit is contained in:
parent
f0bf112850
commit
df95e30c58
@ -316,8 +316,8 @@ configure_nginx() {
|
|||||||
fi
|
fi
|
||||||
if confirm_action "要安装 nginx 吗?" "Y"; then
|
if confirm_action "要安装 nginx 吗?" "Y"; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
# TODO E: Version '1.20.2-1~noble' for 'nginx' was not found
|
sudo apt-get install nginx -y
|
||||||
sudo apt-get install nginx=1.20.2-1~$(lsb_release -cs) -y
|
echo "nginx 版本: $(nginx -v 2>&1)"
|
||||||
echo "别忘了把 /etc/nginx/sites-enabled 中的配置文件移动到 /etc/nginx/conf.d 中"
|
echo "别忘了把 /etc/nginx/sites-enabled 中的配置文件移动到 /etc/nginx/conf.d 中"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user