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
zhifan huang
slapos
Commits
1b877749
Commit
1b877749
authored
Mar 30, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/theia: Make resiliency promises more robust
parent
30dd0182
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+2
-2
software/theia/instance-export.cfg.jinja.in
software/theia/instance-export.cfg.jinja.in
+4
-4
software/theia/instance-import.cfg.jinja.in
software/theia/instance-import.cfg.jinja.in
+4
-4
No files found.
software/theia/buildout.hash.cfg
View file @
1b877749
...
@@ -23,11 +23,11 @@ md5sum = e211c439571e2900f9f35482c9638d06
...
@@ -23,11 +23,11 @@ md5sum = e211c439571e2900f9f35482c9638d06
[instance-import]
[instance-import]
_update_hash_filename_ = instance-import.cfg.jinja.in
_update_hash_filename_ = instance-import.cfg.jinja.in
md5sum = 2
9bc1c5b76d20fd46430dff5c72d192
b
md5sum = 2
3c3df4a889ebfa9f0a94e873e95ad3
b
[instance-export]
[instance-export]
_update_hash_filename_ = instance-export.cfg.jinja.in
_update_hash_filename_ = instance-export.cfg.jinja.in
md5sum =
e2630148998c3cdf6d03b5e884d7f46
4
md5sum =
84ceb4c9ee0f07fce8518ef7517ce1d
4
[instance-resilient]
[instance-resilient]
_update_hash_filename_ = instance-resilient.cfg.jinja
_update_hash_filename_ = instance-resilient.cfg.jinja
...
...
software/theia/instance-export.cfg.jinja.in
View file @
1b877749
...
@@ -92,14 +92,14 @@ inline =
...
@@ -92,14 +92,14 @@ inline =
then
then
echo "ERROR export script last ran on " $(date -r {{ repr(exitcodefile) }})
echo "ERROR export script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 1
exit 1
elif [
$( cat {{ repr(exitcodefile) }}) -ne
0 ]
elif [
"$(cat {{ repr(exitcodefile) }})" =
0 ]
then
then
echo "OK export script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 0
else
echo "ERROR export script failed on " $(date -r {{ repr(exitcodefile) }})
echo "ERROR export script failed on " $(date -r {{ repr(exitcodefile) }})
cat {{ repr(errorfile) }}
cat {{ repr(errorfile) }}
exit 1
exit 1
else
echo "OK export script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 0
fi
fi
{%- endraw %}
{%- endraw %}
...
...
software/theia/instance-import.cfg.jinja.in
View file @
1b877749
...
@@ -154,14 +154,14 @@ inline =
...
@@ -154,14 +154,14 @@ inline =
then
then
echo "ERROR import script last ran on " $(date -r {{ repr(exitcodefile) }})
echo "ERROR import script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 1
exit 1
elif [
$( cat {{ repr(exitcodefile) }}) -ne
0 ]
elif [
"$(cat {{ repr(exitcodefile) }})" =
0 ]
then
then
echo "OK import script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 0
else
echo "ERROR import script failed on " $(date -r {{ repr(exitcodefile) }})
echo "ERROR import script failed on " $(date -r {{ repr(exitcodefile) }})
cat {{ repr(errorfile) }}
cat {{ repr(errorfile) }}
exit 1
exit 1
else
echo "OK import script last ran on " $(date -r {{ repr(exitcodefile) }})
exit 0
fi
fi
{%- endraw %}
{%- endraw %}
...
...
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