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
3b9a6ab6
Commit
3b9a6ab6
authored
Mar 15, 2020
by
nikaeinn
Browse files
Fix the snap install command for oai-cn
parent
530137f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
build_m5g
View file @
3b9a6ab6
...
...
@@ -542,8 +542,8 @@ build_m5g (){
build_kube5g
}
declare
-a
oaicn_snaps
=(
"oai-mme"
"oai-hss"
"oai-spgwc"
"oai-spgwu"
)
declare
-a
oaicn_snaps
=(
"oai-mme"
"oai-hss"
"oai-spgwc"
"oai-spgwu"
)
snap_m5g_module
(){
echo
"Snapping
$1
"
snap list
$1
&> /dev/null
...
...
@@ -561,8 +561,14 @@ snap_m5g_module(){
if
[
"
$1
"
=
"oai-cn"
]
;
then
for
s
in
"
${
oaicn_snaps
[@]
}
"
do
echo
"snap
$s
--channel=edge --devmode"
sudo
snap
$s
--channel
=
edge
--devmode
snap list
$s
&> /dev/null
if
[
$?
-eq
0
]
;
then
op
=
"refresh"
else
op
=
"install"
fi
echo
"snap
$op
$s
--channel=edge --devmode"
sudo
snap
$op
$s
--channel
=
edge
--devmode
done
fi
...
...
@@ -573,8 +579,8 @@ snap_m5g_module(){
snap info
$1
}
declare
-a
snaps
=(
"oai-cn"
"oai-ran"
"oai-ue"
"oai-tracer"
"flexran"
"ll-mec"
)
declare
-a
snaps
=(
"oai-cn"
"oai-ran"
"oai-ue"
"oai-tracer"
"flexran"
"ll-mec"
)
snap_m5g
(){
for
s
in
"
${
snaps
[@]
}
"
do
...
...
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