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
0
Merge Requests
0
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
Ayush Tiwari
slapos
Commits
b0c87159
Commit
b0c87159
authored
Aug 18, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: dropbear config outsourced in a template file
parent
1466dab9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
software/slaprunner/common.cfg
software/slaprunner/common.cfg
+10
-1
software/slaprunner/instance-runner.cfg
software/slaprunner/instance-runner.cfg
+6
-11
software/slaprunner/template/bash_profile.in
software/slaprunner/template/bash_profile.in
+7
-0
No files found.
software/slaprunner/common.cfg
View file @
b0c87159
...
...
@@ -44,7 +44,7 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg.in
md5sum =
26d4b5efa2fd9853287a83f29988255c
md5sum =
58d0f26daf27e15caf7324217f05877f
mode = 0644
[template-runner-import-script]
...
...
@@ -134,6 +134,15 @@ filename = parameters.xml.in
download-only = true
mode = 0644
[template-bash-profile]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
md5sum = 0e88fc8739f2aff581da787c2843e682
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = bash_profile.in
download-only = true
mode = 0644
[eggs]
recipe = z3c.recipe.scripts
eggs =
...
...
software/slaprunner/instance-runner.cfg
View file @
b0c87159
...
...
@@ -612,17 +612,12 @@ location = $${slaprunner:minishell_cwd_file}
stop-on-error = true
[bash-profile]
recipe = plone.recipe.command
command = if [ ! -f $${:location} ]; then echo "$${:content}" > $${:location}; fi
content =
# Beware, this file is automatically processed by slapgrid
# Do not modify it, your changes will be lost
cd $${runnerdirectory:home}
PATH=$PATH:${nano:location}/bin:${vim:location}/bin:${screen:location}/bin:${git:location}/bin:${curl:location}/bin:${python2.7:location}/bin
export PATH
export PS1="\w $ "
location = $${buildout:directory}/.bash_profile
stop-on-error = true
recipe = slapos.recipe.template:jinja2
template = ${template-bash-profile:location}/${template-bash-profile:filename}
rendered = $${buildout:directory}/.bash_profile
context =
raw path $PATH:${nano:location}/bin:${vim:location}/bin:${screen:location}/bin:${git:location}/bin:${curl:location}/bin:${python2.7:location}/bin
key workdir runnerdirectory:home
[monitor-current-log-access]
< = monitor-directory-access
...
...
software/slaprunner/template/bash_profile.in
0 → 100644
View file @
b0c87159
# Beware, this file is automatically processed by slapgrid
# Do not modify it, your changes will be lost
# If you want to load your custom bash configuration, please use a .bashrc file
cd {{ workdir }}
export PATH={{- path }}
export PS1="\w $ "
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