Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
8317f718
Commit
8317f718
authored
Sep 13, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-configure: fix re6stnet path problem
parent
033685a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
windows/scripts/slapos-configure.sh
windows/scripts/slapos-configure.sh
+4
-4
No files found.
windows/scripts/slapos-configure.sh
View file @
8317f718
...
...
@@ -392,7 +392,7 @@ function configure_section_openvpn()
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
&&
(
cd
/opt
;
tar
--no-same-owner
xzf ~/openvpn.tar.gz
)
(
cd
/opt
;
tar
xzf ~/openvpn.tar.gz
--no-same-owner
)
for
name
in
openvpn.exe devcon.exe
\
libeay32.dll liblzo2-2.dll libpkcs11-helper-1.dll ssleay32.dll
;
do
...
...
@@ -407,7 +407,7 @@ function configure_section_openvpn()
mkdir
-p
${
_path
}
[[
!
-f
/opt/openvpn/driver/OemWin2k.inf
]]
&&
slapos_wget_file http://dashingsoft.com/products/openvpn-
${
_arch
}
.tar.gz ~/openvpn.tar.gz
&&
(
cd
/opt
;
tar
--no-same-owner
xzf ~/openvpn.tar.gz
)
(
cd
/opt
;
tar
xzf ~/openvpn.tar.gz
--no-same-owner
)
for
name
in
OemWin2k.inf tap0901.cat tap0901.sys
;
do
csih_inform
"copy /opt/openvpn/driver/
${
name
}
to
${
_path
}
"
...
...
@@ -416,12 +416,12 @@ function configure_section_openvpn()
fi
# Check ovpn scripts
_path
=
/usr/lib/python2.7/site-packages/re6stnet/re6st
_path
=
$(
ls
-d
/usr/lib/python2.7/site-packages/re6stnet-
*
.egg/re6st
)
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
&&
(
cd
/opt
;
tar
--no-same-owner
xzf ~/openvpn.tar.gz
)
(
cd
/opt
;
tar
xzf ~/openvpn.tar.gz
--no-same-owner
)
csih_inform
"copy /opt/openvpn/re6st/
${
name
}
.exe to
${
_path
}
"
cp
/opt/openvpn/re6st/
${
name
}
.exe
${
_path
}
||
csih_error
"No available ovpn scripts:
${
name
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment