Cleanup
- Save a redirect and make VPN setup slightly faster by using raw.githubusercontent.com directly instead of https://github.com/hwdsl2/setup-ipsec-vpn/raw/...
This commit is contained in:
parent
5732125abf
commit
2bd37ccf66
@ -4,4 +4,4 @@ export VPN_IPSEC_PSK=$1
|
||||
export VPN_USER=$2
|
||||
export VPN_PASSWORD=$3
|
||||
|
||||
wget -t 3 -T 30 -nv -O vpn.sh https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh && sh vpn.sh
|
||||
wget -t 3 -T 30 -nv -O vpn.sh https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/vpnsetup.sh && sh vpn.sh
|
||||
|
@ -245,7 +245,7 @@ install_pkgs() {
|
||||
}
|
||||
|
||||
get_setup_url() {
|
||||
base_url1="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
|
||||
base_url1="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master"
|
||||
base_url2="https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master"
|
||||
sh_file="vpnsetup_ubuntu.sh"
|
||||
if [ "$os_type" = "centos" ] || [ "$os_type" = "rhel" ] || [ "$os_type" = "rocky" ] \
|
||||
|
@ -141,7 +141,7 @@ install_pkgs() {
|
||||
}
|
||||
|
||||
get_setup_url() {
|
||||
base_url1="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras"
|
||||
base_url1="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras"
|
||||
base_url2="https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras"
|
||||
sh_file="vpnupgrade_ubuntu.sh"
|
||||
if [ "$os_type" = "centos" ] || [ "$os_type" = "rhel" ] || [ "$os_type" = "rocky" ] \
|
||||
|
@ -199,7 +199,7 @@ EOF
|
||||
update_ikev2_script() {
|
||||
bigecho "Updating IKEv2 script..."
|
||||
cd /opt/src || exit 1
|
||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||
ikev2_url="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh"
|
||||
(
|
||||
set -x
|
||||
wget -t 3 -T 30 -q -O ikev2.sh.new "$ikev2_url"
|
||||
|
@ -195,7 +195,7 @@ restore_selinux() {
|
||||
update_ikev2_script() {
|
||||
bigecho "Updating IKEv2 script..."
|
||||
cd /opt/src || exit 1
|
||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||
ikev2_url="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh"
|
||||
(
|
||||
set -x
|
||||
wget -t 3 -T 30 -q -O ikev2.sh.new "$ikev2_url"
|
||||
|
@ -247,7 +247,7 @@ restore_selinux() {
|
||||
update_ikev2_script() {
|
||||
bigecho "Updating IKEv2 script..."
|
||||
cd /opt/src || exit 1
|
||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||
ikev2_url="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh"
|
||||
(
|
||||
set -x
|
||||
wget -t 3 -T 30 -q -O ikev2.sh.new "$ikev2_url"
|
||||
|
@ -258,7 +258,7 @@ EOF
|
||||
update_ikev2_script() {
|
||||
bigecho "Updating IKEv2 script..."
|
||||
cd /opt/src || exit 1
|
||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||
ikev2_url="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master/extras/ikev2setup.sh"
|
||||
(
|
||||
set -x
|
||||
wget -t 3 -T 30 -q -O ikev2.sh.new "$ikev2_url"
|
||||
|
@ -245,7 +245,7 @@ install_pkgs() {
|
||||
}
|
||||
|
||||
get_setup_url() {
|
||||
base_url1="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"
|
||||
base_url1="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master"
|
||||
base_url2="https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master"
|
||||
sh_file="vpnsetup_ubuntu.sh"
|
||||
if [ "$os_type" = "centos" ] || [ "$os_type" = "rhel" ] || [ "$os_type" = "rocky" ] \
|
||||
|
Loading…
Reference in New Issue
Block a user