Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
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
Jérome Perrin
slapos
Commits
3a460672
Commit
3a460672
authored
Aug 13, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5testnode: WIP switch_softwaretype -> switch-softwaretype
parent
1da8f562
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
software/erp5testnode/buildout.hash.cfg
software/erp5testnode/buildout.hash.cfg
+1
-1
software/erp5testnode/instance.cfg
software/erp5testnode/instance.cfg
+17
-0
No files found.
software/erp5testnode/buildout.hash.cfg
View file @
3a460672
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# not need these here).
# not need these here).
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
64e57f6cd901485a8907ae1f9384542a
md5sum =
ceceddb670be7b2f97ef64129a7765ef
[template-default]
[template-default]
filename = instance-default.cfg.jinja.in
filename = instance-default.cfg.jinja.in
...
...
software/erp5testnode/instance.cfg
View file @
3a460672
[buildout]
[buildout]
parts =
parts =
prepare-switch-softwaretype-migration
switch-softwaretype
switch-softwaretype
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
...
@@ -19,6 +20,22 @@ recipe = slapos.cookbook:switch-softwaretype
...
@@ -19,6 +20,22 @@ recipe = slapos.cookbook:switch-softwaretype
RootSoftwareInstance = $${:default}
RootSoftwareInstance = $${:default}
default = instance-default:rendered
default = instance-default:rendered
[prepare-switch-softwaretype-migration]
# We renamed switch-softwaretype into switch_softwaretype, this also
# renames the .installed database, but we need to keep the same database
# so that old files are removed after updating.
recipe = slapos.recipe.build
update =
import os
buildout_directory = self.buildout['buildout']['directory']
old_installed_cfg = os.path.join(buildout_directory, '.installed-switch_softwaretype.cfg')
new_installed_cfg = os.path.join(buildout_directory, '.installed-switch-softwaretype.cfg')
if os.path.exists(old_installed_cfg):
assert not os.path.exists(new_installed_cfg)
self.logger.info("Renaming %s to %s", old_installed_cfg, new_installed_cfg)
os.rename(old_installed_cfg, new_installed_cfg)
[instance-default]
[instance-default]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${template-default:output}
template = ${template-default:output}
...
...
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