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
Tatuya Kamada
slapos
Commits
ba493cf8
Commit
ba493cf8
authored
Sep 27, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safely skip existing config files
parent
a4bd0feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
slapos/recipe/maarch/configuration.py
slapos/recipe/maarch/configuration.py
+13
-8
No files found.
slapos/recipe/maarch/configuration.py
View file @
ba493cf8
...
@@ -72,21 +72,26 @@ class Recipe(GenericBaseRecipe):
...
@@ -72,21 +72,26 @@ class Recipe(GenericBaseRecipe):
"""
"""
def
install
(
self
):
def
install
(
self
):
apps_config_xml
=
self
.
create_apps_config_xml
()
core_config_xml
=
self
.
create_core_config_xml
()
self
.
update_phpini
(
php_ini_path
=
os
.
path
.
join
(
self
.
options
[
'php_ini_dir'
],
'php.ini'
))
self
.
update_phpini
(
php_ini_path
=
os
.
path
.
join
(
self
.
options
[
'php_ini_dir'
],
'php.ini'
))
self
.
load_initial_db
()
self
.
load_initial_db
()
ret
=
[]
apps_config_xml
=
self
.
create_apps_config_xml
()
if
apps_config_xml
:
ret
.
append
(
apps_config_xml
)
core_config_xml
=
self
.
create_core_config_xml
()
if
core_config_xml
:
ret
.
append
(
core_config_xml
)
# confirm that everything is done, the app will run without further setup
# confirm that everything is done, the app will run without further setup
lck_path
=
self
.
installed_lock
()
lck_path
=
self
.
installed_lock
()
ret
.
append
(
lck_path
)
return
ret
return
[
apps_config_xml
,
core_config_xml
,
lck_path
,
]
def
create_apps_config_xml
(
self
):
def
create_apps_config_xml
(
self
):
...
...
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