From 5b1377dcf3de998a4447f86d0e8a5ec0fa19c33c Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 22 Jan 2022 21:34:53 -0600 Subject: [PATCH] Cleanup --- extras/vpnupgrade_alpine.sh | 1 + extras/vpnupgrade_amzn.sh | 1 + extras/vpnupgrade_centos.sh | 1 + extras/vpnupgrade_ubuntu.sh | 1 + vpnsetup_alpine.sh | 2 ++ vpnsetup_amzn.sh | 2 ++ vpnsetup_centos.sh | 2 ++ vpnsetup_ubuntu.sh | 2 ++ 8 files changed, 12 insertions(+) diff --git a/extras/vpnupgrade_alpine.sh b/extras/vpnupgrade_alpine.sh index ded1992..90fbb2c 100755 --- a/extras/vpnupgrade_alpine.sh +++ b/extras/vpnupgrade_alpine.sh @@ -159,6 +159,7 @@ install_pkgs() { get_libreswan() { bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" diff --git a/extras/vpnupgrade_amzn.sh b/extras/vpnupgrade_amzn.sh index c20c2cc..aec8285 100755 --- a/extras/vpnupgrade_amzn.sh +++ b/extras/vpnupgrade_amzn.sh @@ -142,6 +142,7 @@ install_pkgs() { get_libreswan() { bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index fec0c24..62dbdb9 100755 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -178,6 +178,7 @@ install_pkgs_2() { get_libreswan() { bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" diff --git a/extras/vpnupgrade_ubuntu.sh b/extras/vpnupgrade_ubuntu.sh index 2ad3a4c..4132fa4 100755 --- a/extras/vpnupgrade_ubuntu.sh +++ b/extras/vpnupgrade_ubuntu.sh @@ -177,6 +177,7 @@ install_pkgs() { get_libreswan() { bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" diff --git a/vpnsetup_alpine.sh b/vpnsetup_alpine.sh index 0099e78..59d7b05 100755 --- a/vpnsetup_alpine.sh +++ b/vpnsetup_alpine.sh @@ -189,6 +189,7 @@ check_libreswan() { get_libreswan() { if ! check_libreswan; then bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" @@ -232,6 +233,7 @@ EOF get_ikev2_script() { bigecho "Downloading IKEv2 script..." + cd /opt/src || exit 1 ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x diff --git a/vpnsetup_amzn.sh b/vpnsetup_amzn.sh index 3e7f422..49f64ad 100755 --- a/vpnsetup_amzn.sh +++ b/vpnsetup_amzn.sh @@ -189,6 +189,7 @@ check_libreswan() { get_libreswan() { if ! check_libreswan; then bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" @@ -234,6 +235,7 @@ EOF get_ikev2_script() { bigecho "Downloading IKEv2 script..." + cd /opt/src || exit 1 ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 7c24c27..95f3f5b 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -244,6 +244,7 @@ check_libreswan() { get_libreswan() { if ! check_libreswan; then bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" @@ -289,6 +290,7 @@ EOF get_ikev2_script() { bigecho "Downloading IKEv2 script..." + cd /opt/src || exit 1 ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x diff --git a/vpnsetup_ubuntu.sh b/vpnsetup_ubuntu.sh index 682fa95..57c76e8 100755 --- a/vpnsetup_ubuntu.sh +++ b/vpnsetup_ubuntu.sh @@ -227,6 +227,7 @@ check_libreswan() { get_libreswan() { if ! check_libreswan; then bigecho "Downloading Libreswan..." + cd /opt/src || exit 1 swan_file="libreswan-$SWAN_VER.tar.gz" swan_url1="https://github.com/libreswan/libreswan/archive/v$SWAN_VER.tar.gz" swan_url2="https://download.libreswan.org/$swan_file" @@ -280,6 +281,7 @@ EOF get_ikev2_script() { bigecho "Downloading IKEv2 script..." + cd /opt/src || exit 1 ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh" ( set -x