Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
ffc84978
Commit
ffc84978
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Only write to run.sh if it does not exist
parent
3894a6a3
No related branches found
Branches containing commit
No related tags found
2 merge requests
!68
Master merge
,
!46
Xx 4478/templatize
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generatePackage.py
+4
-3
4 additions, 3 deletions
generatePackage.py
with
4 additions
and
3 deletions
generatePackage.py
+
4
−
3
View file @
ffc84978
...
...
@@ -183,9 +183,10 @@ def generate_server_side_config(offset: int, newPackage: string):
with
open
(
"
{}/noerrors.txt
"
.
format
(
newPackage
),
"
w
"
)
as
f
:
f
.
write
(
no_errors
)
with
open
(
"
{}/run.sh
"
.
format
(
newPackage
),
"
w
"
)
as
f
:
run_template
=
run_template
.
replace
(
"
{entry_point}
"
,
str
(
gateway_ports
[
0
]))
f
.
write
(
run_template
)
if
not
os
.
path
.
exists
(
"
{}/run.sh
"
.
format
(
newPackage
)):
with
open
(
"
{}/run.sh
"
.
format
(
newPackage
),
"
w
"
)
as
f
:
run_template
=
run_template
.
replace
(
"
{entry_point}
"
,
str
(
gateway_ports
[
0
]))
f
.
write
(
run_template
)
# Set the executable permissions on the bash script file
os
.
chmod
(
"
{}/run.sh
"
.
format
(
newPackage
),
0o755
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment