Commit 901d8da3 authored by Joanne Hugé's avatar Joanne Hugé

software/ors-amarisoft: cleanup

parent 826f7011
Pipeline #18857 failed with stage
...@@ -54,7 +54,7 @@ recipe = slapos.recipe.build ...@@ -54,7 +54,7 @@ recipe = slapos.recipe.build
path = /opt/amarisoft/lte path = /opt/amarisoft/lte
init = init =
import os import os
options['lte-version'] = os.readlink("%(path)s" % options)[:-1] options['lte-version'] = os.readlink(options["path"])[:-1]
[copy-to-instance] [copy-to-instance]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
...@@ -69,8 +69,6 @@ recipe = slapos.recipe.build:download-unpacked ...@@ -69,8 +69,6 @@ recipe = slapos.recipe.build:download-unpacked
url = ${amarisoft:path}/lte${:_buildout_section_name_}-linux-${amarisoft:lte-version}.tar.gz url = ${amarisoft:path}/lte${:_buildout_section_name_}-linux-${amarisoft:lte-version}.tar.gz
destination = ${buildout:directory}/${:_buildout_section_name_} destination = ${buildout:directory}/${:_buildout_section_name_}
strip-top-level-dir = true strip-top-level-dir = true
ignore-existing = true
on-update = true
[enb.jinja2.cfg] [enb.jinja2.cfg]
<= copy-config-to-instance <= copy-config-to-instance
...@@ -130,6 +128,8 @@ command = ...@@ -130,6 +128,8 @@ command =
stat ${enb:destination}/${:binary}-unpriviledged || stat ${enb:destination}/${:binary}-unpriviledged ||
cp ${enb:destination}/${:binary} ${enb:destination}/${:binary}-unpriviledged && cp ${enb:destination}/${:binary} ${enb:destination}/${:binary}-unpriviledged &&
cp ${enb:destination}/${:binary}-unpriviledged ${enb:destination}/${:binary} cp ${enb:destination}/${:binary}-unpriviledged ${enb:destination}/${:binary}
# ORS are pre-configured to have sudo allow slapsoft to run give-cap-sys-nice-lteenb script
# with root permissions
sudo -n ${amarisoft:path}/../give-cap-sys-nice-lteenb ${enb:destination}/${:binary} || true; sudo -n ${amarisoft:path}/../give-cap-sys-nice-lteenb ${enb:destination}/${:binary} || true;
update-command = ${:command} update-command = ${:command}
...@@ -140,6 +140,3 @@ binary=lteenb ...@@ -140,6 +140,3 @@ binary=lteenb
[lteenb-cap-sys-nice] [lteenb-cap-sys-nice]
<= base-lteenb-cap-sys-nice <= base-lteenb-cap-sys-nice
binary=lteenb-avx2 binary=lteenb-avx2
[versions]
slapos.recipe.template = 4.2
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment