Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mosaic5g
mosaic5g
Commits
271f43fb
Commit
271f43fb
authored
Mar 21, 2020
by
nikaeinn
Browse files
Fix when snapping oai-cn versions
parent
27899fd8
Changes
1
Show whitespace changes
Inline
Side-by-side
build_m5g
View file @
271f43fb
...
...
@@ -795,16 +795,10 @@ function main() {
shift
;;
-C
|
--snap-oai-cn
)
list_include_item
"v1 v2"
$2
if
[[
$?
-ne
0
]]
;
then
echo_warn
"version
$2
is not recognized. Default v1"
SNAP_OAI_CN
=
"v1"
sv
=
1
else
[[
$?
-ne
0
]]
&&
echo
""
&&
echo_error
"[ERR] Snap oai-cn version
$2
not recognized"
&&
return
$?
SNAP_OAI_CN
=
"
$2
"
sv
=
2
fi
echo_info
"Will install OAI CN
$SNAP_OAI_CN
with the LL-MEC Agent from snap"
shift
$sv
;;
shift
2
;;
-k
|
--build-kube5g
)
BUILD_KUBE5G
=
1
echo_info
"Will build kube5G"
...
...
@@ -934,7 +928,7 @@ function main() {
if
[
"
$SNAP_OAI_CN
"
=
"v2"
]
;
then
echo_info
"Snap OAI CN v2 with the LL-MEC Agent"
snap_m5g_module
"oai-cn2"
el
se
el
if
[
"
$SNAP_OAI_CN
"
=
"v1"
]
;
then
echo_info
"Snap OAI CN v1 with the LL-MEC Agent"
snap_m5g_module
"oai-cn"
fi
...
...
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