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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.package
Commits
88aed692
Commit
88aed692
authored
Sep 09, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos-configure: download miniupnpc and pyOpenSSL if required
parent
80ebe837
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
windows/scripts/slapos-configure.sh
windows/scripts/slapos-configure.sh
+9
-3
No files found.
windows/scripts/slapos-configure.sh
View file @
88aed692
...
@@ -148,7 +148,9 @@ function configure_section_re6stnet()
...
@@ -148,7 +148,9 @@ function configure_section_re6stnet()
csih_inform
"checking miniupnpc ..."
csih_inform
"checking miniupnpc ..."
if
[[
!
-d
/opt/miniupnpc
]]
;
then
if
[[
!
-d
/opt/miniupnpc
]]
;
then
_filename
=
/opt/downloads/miniupnpc.tar.gz
_filename
=
/opt/downloads/miniupnpc.tar.gz
[[
-r
${
_filename
}
]]
||
csih_error
"No package found:
${
_filename
}
"
[[
-r
${
_filename
}
]]
||
wget
-c
http://miniupnp.free.fr/files/download.php?file
=
miniupnpc-1.8.tar.gz
-O
${
_filename
}
||
csih_error
"No package found:
${
_filename
}
"
csih_inform
"installing miniupnpc ..."
csih_inform
"installing miniupnpc ..."
cd
/opt
cd
/opt
tar
xzf
${
_filename
}
--no-same-owner
tar
xzf
${
_filename
}
--no-same-owner
...
@@ -164,7 +166,9 @@ function configure_section_re6stnet()
...
@@ -164,7 +166,9 @@ function configure_section_re6stnet()
csih_inform
"checking pyOpenSSL ..."
csih_inform
"checking pyOpenSSL ..."
if
[[
!
-d
/opt/pyOpenSSL
]]
;
then
if
[[
!
-d
/opt/pyOpenSSL
]]
;
then
_filename
=
/opt/downloads/pyOpenSSL.tar.gz
_filename
=
/opt/downloads/pyOpenSSL.tar.gz
[[
-r
${
_filename
}
]]
||
csih_error
"No package found:
${
_filename
}
"
[[
-r
${
_filename
}
]]
||
wget
-c
--no-check-certificate
https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5
=
767bca18a71178ca353dff9e10941929
-O
${
_filename
}
||
csih_error
"No package found:
${
_filename
}
"
csih_inform
"installing pyOpenSSL ..."
csih_inform
"installing pyOpenSSL ..."
cd
/opt
cd
/opt
tar
xzf
${
_filename
}
--no-same-owner
tar
xzf
${
_filename
}
--no-same-owner
...
@@ -603,6 +607,8 @@ function remove_configure_items()
...
@@ -603,6 +607,8 @@ function remove_configure_items()
rm
-rf
/opt/miniupnpc
&&
echo
"OK"
rm
-rf
/opt/miniupnpc
&&
echo
"OK"
csih_inform
"Remove /opt/pyOpenSSL"
csih_inform
"Remove /opt/pyOpenSSL"
rm
-rf
/opt/pyOpenSSL
&&
echo
"OK"
rm
-rf
/opt/pyOpenSSL
&&
echo
"OK"
csih_inform
"Remove /opt/re6stnet"
rm
-rf
/opt/re6stnet
&&
echo
"OK"
csih_inform
"Remove /etc/re6stnet"
csih_inform
"Remove /etc/re6stnet"
rm
-rf
/etc/re6stnet
&&
echo
"OK"
rm
-rf
/etc/re6stnet
&&
echo
"OK"
...
...
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