From 67e71a5e513a2adf0ddd3e0b3ee5d2bd61eafa9f Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 12 Jun 2023 00:41:36 -0500 Subject: [PATCH] Add Debian 12 --- README-zh.md | 2 +- README.md | 2 +- vpnsetup_ubuntu.sh | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README-zh.md b/README-zh.md index 8ba13db..ca49882 100644 --- a/README-zh.md +++ b/README-zh.md @@ -73,7 +73,7 @@ https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/vpnsetup.sh 一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器,安装以下操作系统之一: - Ubuntu 22.04 或者 20.04 -- Debian 11 或者 10 +- Debian 12, 11 或者 10 - CentOS 7 或者 CentOS Stream 9/8 - Rocky Linux 或者 AlmaLinux 9/8 - Oracle Linux 9, 8 或者 7 diff --git a/README.md b/README.md index 51cc9d6..5cc01da 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ A pre-built [Docker image](https://github.com/hwdsl2/docker-ipsec-vpn-server) is A cloud server, virtual private server (VPS) or dedicated server, with an install of: - Ubuntu 22.04 or 20.04 -- Debian 11 or 10 +- Debian 12, 11 or 10 - CentOS 7 or CentOS Stream 9/8 - Rocky Linux or AlmaLinux 9/8 - Oracle Linux 9, 8 or 7 diff --git a/vpnsetup_ubuntu.sh b/vpnsetup_ubuntu.sh index ec01619..0e94fa8 100755 --- a/vpnsetup_ubuntu.sh +++ b/vpnsetup_ubuntu.sh @@ -265,6 +265,12 @@ install_vpn_pkgs() { libcurl4-nss-dev flex bison gcc make libnss3-tools \ libevent-dev libsystemd-dev uuid-runtime ppp xl2tpd >/dev/null ) || exiterr2 + if [ "$os_type" = "debian" ] && [ "$os_ver" = 12 ]; then + ( + set -x + apt-get -yqq install rsyslog >/dev/null + ) || exiterr2 + fi } install_nss_pkgs() {