Commit 61de57f1 authored by Jondy Zhao's avatar Jondy Zhao

slapos-configure.sh: fix typos of openvpn download url

parent 1f0c965f
......@@ -387,9 +387,10 @@ function configure_section_openvpn()
# Check openvpn
_arch=x86
check_os_is_wow64 && _arch=x64
_url="http://dashingsoft.com/products/slapos/openvpn-${_arch}.tar.gz"
if [[ ! -x /usr/bin/openvpn.exe ]] ; then
[[ ! -x /opt/openvpn/bin/openvpn.exe ]] &&
slapos_wget_file http://dashingsoft.com/products/openvpn-${_arch}.tar.gz ~/openvpn.tar.gz &&
slapos_wget_file ${_url} ~/openvpn.tar.gz &&
(cd /opt ; tar xzf ~/openvpn.tar.gz --no-same-owner)
for name in openvpn.exe devcon.exe \
......@@ -404,7 +405,7 @@ function configure_section_openvpn()
if [[ ! -f ${_path}/OemWin2k.inf ]] ; then
mkdir -p ${_path}
[[ ! -f /opt/openvpn/driver/OemWin2k.inf ]] &&
slapos_wget_file http://dashingsoft.com/products/openvpn-${_arch}.tar.gz ~/openvpn.tar.gz &&
slapos_wget_file ${_url} ~/openvpn.tar.gz &&
(cd /opt ; tar xzf ~/openvpn.tar.gz --no-same-owner)
for name in OemWin2k.inf tap0901.cat tap0901.sys ; do
......@@ -418,7 +419,7 @@ function configure_section_openvpn()
for name in ovpn-client ovpn-server ; do
[[ -x ${_path}/${name}.exe ]] && continue
[[ ! -f /opt/openvpn/re6st/${name}.exe ]] &&
slapos_wget_file http://dashingsoft.com/products/openvpn-${_arch}.tar.gz ~/openvpn.tar.gz &&
slapos_wget_file ${_url} ~/openvpn.tar.gz &&
(cd /opt ; tar xzf ~/openvpn.tar.gz --no-same-owner)
csih_inform "copy /opt/openvpn/re6st/${name}.exe to ${_path}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment