File tree Expand file tree Collapse file tree 8 files changed +12
-0
lines changed
Expand file tree Collapse file tree 8 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ install_pkgs() {
159159
160160get_libreswan () {
161161 bigecho " Downloading Libreswan..."
162+ cd /opt/src || exit 1
162163 swan_file=" libreswan-$SWAN_VER .tar.gz"
163164 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
164165 swan_url2=" https://download.libreswan.org/$swan_file "
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ install_pkgs() {
142142
143143get_libreswan () {
144144 bigecho " Downloading Libreswan..."
145+ cd /opt/src || exit 1
145146 swan_file=" libreswan-$SWAN_VER .tar.gz"
146147 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
147148 swan_url2=" https://download.libreswan.org/$swan_file "
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ install_pkgs_2() {
178178
179179get_libreswan () {
180180 bigecho " Downloading Libreswan..."
181+ cd /opt/src || exit 1
181182 swan_file=" libreswan-$SWAN_VER .tar.gz"
182183 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
183184 swan_url2=" https://download.libreswan.org/$swan_file "
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ install_pkgs() {
177177
178178get_libreswan () {
179179 bigecho " Downloading Libreswan..."
180+ cd /opt/src || exit 1
180181 swan_file=" libreswan-$SWAN_VER .tar.gz"
181182 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
182183 swan_url2=" https://download.libreswan.org/$swan_file "
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ check_libreswan() {
189189get_libreswan () {
190190 if ! check_libreswan; then
191191 bigecho " Downloading Libreswan..."
192+ cd /opt/src || exit 1
192193 swan_file=" libreswan-$SWAN_VER .tar.gz"
193194 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
194195 swan_url2=" https://download.libreswan.org/$swan_file "
232233
233234get_ikev2_script () {
234235 bigecho " Downloading IKEv2 script..."
236+ cd /opt/src || exit 1
235237 ikev2_url=" https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
236238 (
237239 set -x
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ check_libreswan() {
189189get_libreswan () {
190190 if ! check_libreswan; then
191191 bigecho " Downloading Libreswan..."
192+ cd /opt/src || exit 1
192193 swan_file=" libreswan-$SWAN_VER .tar.gz"
193194 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
194195 swan_url2=" https://download.libreswan.org/$swan_file "
234235
235236get_ikev2_script () {
236237 bigecho " Downloading IKEv2 script..."
238+ cd /opt/src || exit 1
237239 ikev2_url=" https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
238240 (
239241 set -x
Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ check_libreswan() {
244244get_libreswan () {
245245 if ! check_libreswan; then
246246 bigecho " Downloading Libreswan..."
247+ cd /opt/src || exit 1
247248 swan_file=" libreswan-$SWAN_VER .tar.gz"
248249 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
249250 swan_url2=" https://download.libreswan.org/$swan_file "
289290
290291get_ikev2_script () {
291292 bigecho " Downloading IKEv2 script..."
293+ cd /opt/src || exit 1
292294 ikev2_url=" https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
293295 (
294296 set -x
Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ check_libreswan() {
227227get_libreswan () {
228228 if ! check_libreswan; then
229229 bigecho " Downloading Libreswan..."
230+ cd /opt/src || exit 1
230231 swan_file=" libreswan-$SWAN_VER .tar.gz"
231232 swan_url1=" https://github.com/libreswan/libreswan/archive/v$SWAN_VER .tar.gz"
232233 swan_url2=" https://download.libreswan.org/$swan_file "
280281
281282get_ikev2_script () {
282283 bigecho " Downloading IKEv2 script..."
284+ cd /opt/src || exit 1
283285 ikev2_url=" https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/extras/ikev2setup.sh"
284286 (
285287 set -x
You can’t perform that action at this time.
0 commit comments