From 009c8e4e815d54688f7755ef0043ff4bd4be0882 Mon Sep 17 00:00:00 2001 From: HoroshoVse <127848249+HoroshoVse@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:47:21 +0300 Subject: [PATCH] Update Ocserv-Installer.sh Update to 1.3.0 --- Ocserv-Installer.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Ocserv-Installer.sh b/Ocserv-Installer.sh index d1f8403..12985d8 100644 --- a/Ocserv-Installer.sh +++ b/Ocserv-Installer.sh @@ -262,7 +262,23 @@ function OCSERV_INSTALL() { echo -e "${GREEN}DONE${EC}" # Install OCServ and Certbot echo -e "${GREEN}Installing OCServ...${EC}" - apt-get install -y ocserv + + apt-get install -y libgnutls28-dev libev-dev + wget -P /opt/ https://www.infradead.org/ocserv/download/ocserv-1.3.0.tar.xz + tar -xvf /opt/ocserv-1.3.0.tar.xz -C /opt/ + cd /opt/ocserv-1.3.0 + ./configure --prefix= --enable-oidc-auth + make && make install + mkdir -p /etc/ocserv/ + cp doc/sample.config /etc/ocserv/ocserv.conf + cp doc/sample.passwd /etc/ocserv/ + cp doc/sample.otp /etc/ocserv/ + cp doc/profile.xml /etc/ocserv/ + cp doc/systemd/standalone/ocserv.service /lib/systemd/system/ + systemctl daemon-reload + systemctl enable ocserv.service + + echo -e "${GREEN}DONE${EC}" echo -e "${GREEN}Installing Certbot...${EC}" apt-get install -y certbot