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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos
Commits
01445d08
Commit
01445d08
authored
Aug 04, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added path of environment for handlers
parent
5625cbbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
slapos/recipe/cloudooo/__init__.py
slapos/recipe/cloudooo/__init__.py
+7
-0
slapos/recipe/cloudooo/template/cloudooo.cfg.in
slapos/recipe/cloudooo/template/cloudooo.cfg.in
+1
-0
No files found.
slapos/recipe/cloudooo/__init__.py
View file @
01445d08
...
...
@@ -26,6 +26,7 @@
##############################################################################
from
slapos.recipe.librecipe
import
BaseSlapRecipe
import
os
from
os.path
import
sep
import
pkg_resources
import
sys
import
zc.buildout
...
...
@@ -95,11 +96,17 @@ class Recipe(BaseSlapRecipe):
def
installConversionServer
(
self
,
ip
,
port
,
openoffice_port
):
name
=
'conversion_server'
env_path
=
[]
for
binary
in
self
.
options
.
get
(
'link_binary_list'
,
''
).
splitlines
():
path
=
sep
.
join
(
binary
.
split
(
sep
)[:
-
1
])
if
not
path
in
env_path
:
env_path
.
append
(
path
)
working_directory
=
self
.
createDataDirectory
(
name
)
conversion_server_dict
=
dict
(
working_path
=
working_directory
,
uno_path
=
self
.
options
[
'ooo_uno_path'
],
office_binary_path
=
self
.
options
[
'ooo_binary_path'
],
env_PATH
=
':'
.
join
(
env_path
)[
1
:],
ip
=
ip
,
port
=
port
,
openoffice_port
=
openoffice_port
,
...
...
slapos/recipe/cloudooo/template/cloudooo.cfg.in
View file @
01445d08
...
...
@@ -32,6 +32,7 @@ limit_memory_used = 3000
application_hostname = %(ip)s
# OpenOffice Port
openoffice_port = %(openoffice_port)s
env-PATH = %(env_PATH)s
# LD_LIBRARY_PATH passed to OpenOffice
env-LD_LIBRARY_PATH = %(LD_LIBRARY_PATH)s
...
...
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