Improve IKEv2 setup
- Add a link to /usr/bin for the IKEv2 helper script
This commit is contained in:
parent
cda1f00e06
commit
de2d49d3a6
@ -199,8 +199,9 @@ bigecho "Downloading IKEv2 script..."
|
|||||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh
|
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url"
|
||||||
) || /bin/rm -f ikev2.sh
|
) || /bin/rm -f ikev2.sh
|
||||||
|
[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
||||||
|
|
||||||
bigecho "Downloading Libreswan..."
|
bigecho "Downloading Libreswan..."
|
||||||
|
|
||||||
|
@ -163,8 +163,9 @@ bigecho "Downloading IKEv2 script..."
|
|||||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh
|
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url"
|
||||||
) || /bin/rm -f ikev2.sh
|
) || /bin/rm -f ikev2.sh
|
||||||
|
[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
||||||
|
|
||||||
bigecho "Downloading Libreswan..."
|
bigecho "Downloading Libreswan..."
|
||||||
|
|
||||||
|
@ -212,8 +212,9 @@ bigecho "Downloading IKEv2 script..."
|
|||||||
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
ikev2_url="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url" && chmod +x ikev2.sh
|
wget -t 3 -T 30 -q -O ikev2.sh "$ikev2_url"
|
||||||
) || /bin/rm -f ikev2.sh
|
) || /bin/rm -f ikev2.sh
|
||||||
|
[ -s ikev2.sh ] && chmod +x ikev2.sh && ln -s /opt/src/ikev2.sh /usr/bin 2>/dev/null
|
||||||
|
|
||||||
bigecho "Downloading Libreswan..."
|
bigecho "Downloading Libreswan..."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user