diff --git a/configure_priv.sh b/configure_priv.sh index bbaca29..6dc1406 100755 --- a/configure_priv.sh +++ b/configure_priv.sh @@ -316,8 +316,8 @@ configure_nginx() { fi if confirm_action "要安装 nginx 吗?" "Y"; then sudo apt-get update - # TODO E: Version '1.20.2-1~noble' for 'nginx' was not found - sudo apt-get install nginx=1.20.2-1~$(lsb_release -cs) -y + sudo apt-get install nginx -y + echo "nginx 版本: $(nginx -v 2>&1)" echo "别忘了把 /etc/nginx/sites-enabled 中的配置文件移动到 /etc/nginx/conf.d 中" fi }