Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository 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
mediaserver
envsetup
Commits
699b56d0
Commit
699b56d0
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a bug in conf initialization.
parent
440c035d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
22.Initialize_configuration_file/0_setup.sh
+4
-4
4 additions, 4 deletions
22.Initialize_configuration_file/0_setup.sh
with
4 additions
and
4 deletions
22.Initialize_configuration_file/0_setup.sh
+
4
−
4
View file @
699b56d0
...
@@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then
...
@@ -7,7 +7,7 @@ if [ "${MS_ID}" = "" ]; then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_ID"
>
/dev/null
)
;
then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_ID"
>
/dev/null
)
;
then
sed
-i
"s@^MS_ID=.*@MS_ID='
${
MS_ID
}
'@"
/root/envsetup/conf.sh
sed
-i
"s@^MS_ID=.*@MS_ID='
${
MS_ID
}
'@"
/root/envsetup/conf.sh
else
else
echo
"MS_ID='
${
MS_ID
}
'"
>
/root/envsetup/conf.sh
echo
"MS_ID='
${
MS_ID
}
'"
>
>
/root/envsetup/conf.sh
fi
fi
fi
fi
if
[
"
${
MS_API_KEY
}
"
=
""
]
;
then
if
[
"
${
MS_API_KEY
}
"
=
""
]
;
then
...
@@ -17,7 +17,7 @@ if [ "${MS_API_KEY}" = "" ]; then
...
@@ -17,7 +17,7 @@ if [ "${MS_API_KEY}" = "" ]; then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_API_KEY"
>
/dev/null
)
;
then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_API_KEY"
>
/dev/null
)
;
then
sed
-i
"s@^MS_API_KEY=.*@MS_API_KEY='
${
MS_API_KEY
}
'@"
/root/envsetup/conf.sh
sed
-i
"s@^MS_API_KEY=.*@MS_API_KEY='
${
MS_API_KEY
}
'@"
/root/envsetup/conf.sh
else
else
echo
"MS_API_KEY='
${
MS_API_KEY
}
'"
>
/root/envsetup/conf.sh
echo
"MS_API_KEY='
${
MS_API_KEY
}
'"
>
>
/root/envsetup/conf.sh
fi
fi
fi
fi
if
[
"
${
MS_SECRET
}
"
=
"secret"
]
;
then
if
[
"
${
MS_SECRET
}
"
=
"secret"
]
;
then
...
@@ -25,7 +25,7 @@ if [ "${MS_SECRET}" = "secret" ]; then
...
@@ -25,7 +25,7 @@ if [ "${MS_SECRET}" = "secret" ]; then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_SECRET"
>
/dev/null
)
;
then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"MS_SECRET"
>
/dev/null
)
;
then
sed
-i
"s@^MS_SECRET=.*@MS_SECRET='
${
MS_SECRET
}
'@"
/root/envsetup/conf.sh
sed
-i
"s@^MS_SECRET=.*@MS_SECRET='
${
MS_SECRET
}
'@"
/root/envsetup/conf.sh
else
else
echo
"MS_SECRET='
${
MS_SECRET
}
'"
>
/root/envsetup/conf.sh
echo
"MS_SECRET='
${
MS_SECRET
}
'"
>
>
/root/envsetup/conf.sh
fi
fi
fi
fi
# Worker IP for whitelist
# Worker IP for whitelist
...
@@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then
...
@@ -34,6 +34,6 @@ if [ "${CELERITY_WORKER_IP}" = "" ]; then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"CELERITY_WORKER_IP"
>
/dev/null
)
;
then
if
(
cat
"/root/envsetup/conf.sh"
|
grep
"CELERITY_WORKER_IP"
>
/dev/null
)
;
then
sed
-i
"s@^CELERITY_WORKER_IP=.*@CELERITY_WORKER_IP='
${
CELERITY_WORKER_IP
}
'@"
/root/envsetup/conf.sh
sed
-i
"s@^CELERITY_WORKER_IP=.*@CELERITY_WORKER_IP='
${
CELERITY_WORKER_IP
}
'@"
/root/envsetup/conf.sh
else
else
echo
"CELERITY_WORKER_IP='
${
CELERITY_WORKER_IP
}
'"
>
/root/envsetup/conf.sh
echo
"CELERITY_WORKER_IP='
${
CELERITY_WORKER_IP
}
'"
>
>
/root/envsetup/conf.sh
fi
fi
fi
fi
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