Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.maarch
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
nexedi
slapos.recipe.maarch
Commits
5843ce81
Commit
5843ce81
authored
Jan 10, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php_ini_dir -> php_ini, comments
parent
7fba59c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
CHANGES.txt
CHANGES.txt
+1
-1
slapos/recipe/maarch/__init__.py
slapos/recipe/maarch/__init__.py
+23
-7
No files found.
CHANGES.txt
View file @
5843ce81
...
...
@@ -3,5 +3,5 @@ Changelog
0.1-dev (unreleased)
--------------------
- extracted egg from main recipe repositor
i
[Marco Mariani]
- extracted egg from main recipe repositor
y
[Marco Mariani]
slapos/recipe/maarch/__init__.py
View file @
5843ce81
...
...
@@ -31,7 +31,6 @@ import lxml.etree
import
md5
import
os
import
lxml
import
psycopg2
from
slapos.recipe.librecipe
import
GenericBaseRecipe
...
...
@@ -54,12 +53,31 @@ class Recipe(GenericBaseRecipe):
- creation of two xml files from the provided defaults
- php.ini as required by Maarch
- database setup.
The superuser password will be the same as the Postgres one.
- a Maarch 'superadmin' user (with the same password as the Postgres user).
Required options:
php_ini
full path to the PHP configuration file.
htdocs
full path to the htdocs directory.
db_host
ip address of the postgres server.
db_port
ip port of the postgres server.
db_dbname
postgres database name.
db_username
username to authenticate with postgres.
db_password
password to authenticate with postgres.
language
language to use with maarch (en or fr).
root_docservers
where to create docservers directories.
"""
def
install
(
self
):
self
.
update_phpini
(
php_ini_path
=
os
.
path
.
join
(
self
.
options
[
'php_ini_dir'
],
'php.ini'
)
)
self
.
update_phpini
(
php_ini_path
=
self
.
options
[
'php_ini'
]
)
self
.
load_initial_db
()
...
...
@@ -225,12 +243,10 @@ class Recipe(GenericBaseRecipe):
"""
\
Create an empty file to mean the setup is completed
"""
htdocs
=
self
.
options
[
'htdocs'
]
lck_path
=
os
.
path
.
join
(
htdocs
,
'installed.lck'
)
lck_path
=
os
.
path
.
join
(
self
.
options
[
'htdocs'
],
'installed.lck'
)
with
open
(
lck_path
,
'w'
):
pass
return
lck_path
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