Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
393cf091
Commit
393cf091
authored
Nov 30, 2020
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/turnserver: move to python3
parent
4371e39c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
slapos/recipe/zero_knowledge.py
slapos/recipe/zero_knowledge.py
+7
-4
software/slapos-sr-testing/software-py3.cfg
software/slapos-sr-testing/software-py3.cfg
+1
-0
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+0
-1
software/turnserver/software.cfg
software/turnserver/software.cfg
+2
-0
No files found.
slapos/recipe/zero_knowledge.py
View file @
393cf091
...
@@ -25,7 +25,10 @@
...
@@ -25,7 +25,10 @@
#
#
##############################################################################
##############################################################################
import
ConfigParser
try
:
from
ConfigParser
import
ConfigParser
,
NoSectionError
except
ImportError
:
from
configparser
import
ConfigParser
,
NoSectionError
import
os
import
os
import
zc.buildout
import
zc.buildout
...
@@ -53,7 +56,7 @@ class WriteRecipe(GenericBaseRecipe):
...
@@ -53,7 +56,7 @@ class WriteRecipe(GenericBaseRecipe):
def
install
(
self
):
def
install
(
self
):
# Set up the parser, and write config file if needed
# Set up the parser, and write config file if needed
self
.
parser
=
ConfigParser
.
ConfigParser
()
self
.
parser
=
ConfigParser
()
try
:
try
:
self
.
parser
.
read
(
self
.
path
)
self
.
parser
.
read
(
self
.
path
)
#clean_options(options)
#clean_options(options)
...
@@ -63,7 +66,7 @@ class WriteRecipe(GenericBaseRecipe):
...
@@ -63,7 +66,7 @@ class WriteRecipe(GenericBaseRecipe):
with
open
(
self
.
path
,
'w'
)
as
file
:
with
open
(
self
.
path
,
'w'
)
as
file
:
self
.
parser
.
write
(
file
)
self
.
parser
.
write
(
file
)
# If the file or section do not exist
# If the file or section do not exist
except
(
ConfigParser
.
NoSectionError
,
IOError
)
as
e
:
except
(
NoSectionError
,
IOError
)
as
e
:
self
.
full_install
()
self
.
full_install
()
def
full_install
(
self
):
def
full_install
(
self
):
...
@@ -94,7 +97,7 @@ class ReadRecipe(GenericBaseRecipe):
...
@@ -94,7 +97,7 @@ class ReadRecipe(GenericBaseRecipe):
self
.
path
=
options
[
'file-path'
].
strip
()
self
.
path
=
options
[
'file-path'
].
strip
()
# Set up the parser, and write config file if needed
# Set up the parser, and write config file if needed
self
.
parser
=
ConfigParser
.
ConfigParser
()
self
.
parser
=
ConfigParser
()
if
os
.
path
.
exists
(
self
.
path
):
if
os
.
path
.
exists
(
self
.
path
):
self
.
parser
.
read
(
self
.
path
)
self
.
parser
.
read
(
self
.
path
)
for
section
in
self
.
parser
.
sections
():
for
section
in
self
.
parser
.
sections
():
...
...
software/slapos-sr-testing/software-py3.cfg
View file @
393cf091
...
@@ -18,3 +18,4 @@ extra =
...
@@ -18,3 +18,4 @@ extra =
powerdns ${slapos.test.powerdns-setup:setup}
powerdns ${slapos.test.powerdns-setup:setup}
proftpd ${slapos.test.proftpd-setup:setup}
proftpd ${slapos.test.proftpd-setup:setup}
repman ${slapos.test.repman-setup:setup}
repman ${slapos.test.repman-setup:setup}
turnserver ${slapos.test.turnserver-setup:setup}
software/slapos-sr-testing/software.cfg
View file @
393cf091
...
@@ -197,7 +197,6 @@ eggs +=
...
@@ -197,7 +197,6 @@ eggs +=
${slapos.test.slaprunner-setup:egg}
${slapos.test.slaprunner-setup:egg}
${slapos.test.jupyter-setup:egg}
${slapos.test.jupyter-setup:egg}
${slapos.test.nextcloud-setup:egg}
${slapos.test.nextcloud-setup:egg}
${slapos.test.turnserver-setup:egg}
${slapos.test.theia-setup:egg}
${slapos.test.theia-setup:egg}
${slapos.test.cloudooo-setup:egg}
${slapos.test.cloudooo-setup:egg}
${slapos.test.dream-setup:egg}
${slapos.test.dream-setup:egg}
...
...
software/turnserver/software.cfg
View file @
393cf091
...
@@ -14,6 +14,8 @@ parts =
...
@@ -14,6 +14,8 @@ parts =
coturn
coturn
instance-cfg
instance-cfg
[python]
part = python3
[download-base]
[download-base]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
...
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