From b0e91e219c0f4032f390d12d9edffd56fa65f36c Mon Sep 17 00:00:00 2001 From: Reza Talebi Date: Wed, 15 May 2024 14:30:27 +0330 Subject: [PATCH] Updated ocserv to 1.3.0 + Added new dependencies 'ipcalc, ipcalc-ng' Signed-off-by: Reza Talebi --- ocserv-en.sh | 10 +++++----- ocserv.sh | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ocserv-en.sh b/ocserv-en.sh index 8c5c2cf..d210367 100644 --- a/ocserv-en.sh +++ b/ocserv-en.sh @@ -2,13 +2,13 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH -sh_ver="1.0.5" +sh_ver="1.0.6" file="/usr/local/sbin/ocserv" conf_file="/etc/ocserv" conf="/etc/ocserv/ocserv.conf" passwd_file="/etc/ocserv/ocpasswd" log_file="/tmp/ocserv.log" -ocserv_ver="1.2.1" +ocserv_ver="1.3.0" PID_FILE="/var/run/ocserv.pid" Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m" @@ -149,19 +149,19 @@ Installation_dependency(){ cat /etc/issue |grep 9\..*>/dev/null if [[ $? = 0 ]]; then apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y else mv /etc/apt/sources.list /etc/apt/sources.list.bak wget --no-check-certificate -O "/etc/apt/sources.list" "https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/sources/us.sources.list" apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y rm -rf /etc/apt/sources.list mv /etc/apt/sources.list.bak /etc/apt/sources.list apt-get update fi else apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y fi } Install_ocserv(){ diff --git a/ocserv.sh b/ocserv.sh index 1208a5a..331d923 100644 --- a/ocserv.sh +++ b/ocserv.sh @@ -2,13 +2,13 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH -sh_ver="1.0.5" +sh_ver="1.0.6" file="/usr/local/sbin/ocserv" conf_file="/etc/ocserv" conf="/etc/ocserv/ocserv.conf" passwd_file="/etc/ocserv/ocpasswd" log_file="/tmp/ocserv.log" -ocserv_ver="1.2.1" +ocserv_ver="1.3.0" PID_FILE="/var/run/ocserv.pid" Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m" @@ -144,19 +144,19 @@ Installation_dependency(){ cat /etc/issue |grep 9\..*>/dev/null if [[ $? = 0 ]]; then apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y else mv /etc/apt/sources.list /etc/apt/sources.list.bak wget --no-check-certificate -O "/etc/apt/sources.list" "https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/sources/us.sources.list" apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y rm -rf /etc/apt/sources.list mv /etc/apt/sources.list.bak /etc/apt/sources.list apt-get update fi else apt-get update - apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin -y + apt-get install vim net-tools pkg-config build-essential libgnutls28-dev libwrap0-dev liblz4-dev libseccomp-dev libreadline-dev libnl-nf-3-dev libev-dev gnutls-bin ipcalc ipcalc-ng -y fi } Install_ocserv(){