mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2026-01-11 02:46:16 +00:00
Cleanup
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
# Based on the work of Nyr and contributors at:
|
# Based on the work of Nyr and contributors at:
|
||||||
# https://github.com/Nyr/openvpn-install
|
# https://github.com/Nyr/openvpn-install
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022-2024 Lin Song <linsongui@gmail.com>
|
# Copyright (c) 2022-2025 Lin Song <linsongui@gmail.com>
|
||||||
# Copyright (c) 2013-2023 Nyr
|
# Copyright (c) 2013-2023 Nyr
|
||||||
#
|
#
|
||||||
# Released under the MIT License, see the accompanying file LICENSE.txt
|
# Released under the MIT License, see the accompanying file LICENSE.txt
|
||||||
@@ -360,7 +360,7 @@ EOF
|
|||||||
show_header3() {
|
show_header3() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
Copyright (c) 2022-2024 Lin Song
|
Copyright (c) 2022-2025 Lin Song
|
||||||
Copyright (c) 2013-2023 Nyr
|
Copyright (c) 2013-2023 Nyr
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@@ -891,7 +891,7 @@ install_easyrsa() {
|
|||||||
# Get easy-rsa
|
# Get easy-rsa
|
||||||
easy_rsa_url='https://github.com/OpenVPN/easy-rsa/releases/download/v3.2.3/EasyRSA-3.2.3.tgz'
|
easy_rsa_url='https://github.com/OpenVPN/easy-rsa/releases/download/v3.2.3/EasyRSA-3.2.3.tgz'
|
||||||
mkdir -p /etc/openvpn/server/easy-rsa/
|
mkdir -p /etc/openvpn/server/easy-rsa/
|
||||||
{ wget -t 3 -T 30 -qO- "$easy_rsa_url" 2>/dev/null || curl -m 30 -sL "$easy_rsa_url" ; } | tar xz -C /etc/openvpn/server/easy-rsa/ --strip-components 1
|
{ wget -t 3 -T 30 -qO- "$easy_rsa_url" 2>/dev/null || curl -m 30 -sL "$easy_rsa_url" ; } | tar xz -C /etc/openvpn/server/easy-rsa/ --strip-components 1 2>/dev/null
|
||||||
if [ ! -f /etc/openvpn/server/easy-rsa/easyrsa ]; then
|
if [ ! -f /etc/openvpn/server/easy-rsa/easyrsa ]; then
|
||||||
exiterr "Failed to download EasyRSA from $easy_rsa_url."
|
exiterr "Failed to download EasyRSA from $easy_rsa_url."
|
||||||
fi
|
fi
|
||||||
@@ -1113,7 +1113,7 @@ update_selinux() {
|
|||||||
yum -y -q install policycoreutils-python >/dev/null
|
yum -y -q install policycoreutils-python >/dev/null
|
||||||
) || exiterr3
|
) || exiterr3
|
||||||
else
|
else
|
||||||
# CentOS 8/9 or Fedora
|
# CentOS 8/9/10 or Fedora
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
dnf install -y policycoreutils-python-utils >/dev/null
|
dnf install -y policycoreutils-python-utils >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user