Skip to content

Commit

Permalink
Merge pull request #28 from RezaT4795/main
Browse files Browse the repository at this point in the history
Updated ocserv to v1.2.1
  • Loading branch information
sfc9982 authored Sep 9, 2023
2 parents 230e35c + 3d5ba27 commit 971944f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ocserv-en.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ conf_file="/etc/ocserv"
conf="/etc/ocserv/ocserv.conf"
passwd_file="/etc/ocserv/ocpasswd"
log_file="/tmp/ocserv.log"
ocserv_ver="1.1.6"
ocserv_ver="1.2.1"
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"
Expand Down Expand Up @@ -70,7 +70,7 @@ Download_ocserv(){
mkdir "ocserv" && cd "ocserv"
wget "ftp://ftp.infradead.org/pub/ocserv/ocserv-${ocserv_ver}.tar.xz"
[[ ! -s "ocserv-${ocserv_ver}.tar.xz" ]] && echo -e "${Error} ocserv source download failed!" && rm -rf "ocserv/" && rm -rf "ocserv-${ocserv_ver}.tar.xz" && exit 1
tar -xJf ocserv-1.1.6.tar.xz && cd ocserv-1.1.6
tar -xJf ocserv-${ocserv_ver}.tar.xz && cd ocserv-${ocserv_ver}
./configure
make
make install
Expand Down
4 changes: 2 additions & 2 deletions ocserv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ conf_file="/etc/ocserv"
conf="/etc/ocserv/ocserv.conf"
passwd_file="/etc/ocserv/ocpasswd"
log_file="/tmp/ocserv.log"
ocserv_ver="1.1.6"
ocserv_ver="1.2.1"
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"
Expand Down Expand Up @@ -65,7 +65,7 @@ Download_ocserv(){
mkdir "ocserv" && cd "ocserv"
wget "ftp://ftp.infradead.org/pub/ocserv/ocserv-${ocserv_ver}.tar.xz"
[[ ! -s "ocserv-${ocserv_ver}.tar.xz" ]] && echo -e "${Error} ocserv 源码文件下载失败 !" && rm -rf "ocserv/" && rm -rf "ocserv-${ocserv_ver}.tar.xz" && exit 1
tar -xJf ocserv-1.1.6.tar.xz && cd ocserv-1.1.6
tar -xJf ocserv-${ocserv_ver}.tar.xz && cd ocserv-${ocserv_ver}
./configure
make
make install
Expand Down

0 comments on commit 971944f

Please sign in to comment.