Commit ce5abfd7 authored by apapkovskiy's avatar apapkovskiy
Browse files

Fix a bug with library path and sudo command

parent 426db21e
......@@ -19,4 +19,6 @@ rm -f cert_*.pem
rm -f keyref_*.pem
rm -f SampleConfig.json
cd ${SNAP_COMMON}
$SNAP/$PATH_TO_BIN/nxp_iot_agent_demo
......@@ -2,4 +2,6 @@
set -x
sudo $SNAP/bin/simple_server
echo $LD_LIBRARY_PATH
sudo SNAP=$SNAP LD_LIBRARY_PATH=$LD_LIBRARY_PATH $SNAP/bin/start-simple-server-hide
#!/bin/bash
set -x
echo $LD_LIBRARY_PATH
$SNAP/bin/simple_server
......@@ -77,7 +77,7 @@ parts:
apps:
jrcp-server:
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/sci2c/lib
LD_LIBRARY_PATH: $SNAP/sci2c/lib:$LD_LIBRARY_PATH
command: "bin/start-simple-server"
daemon: simple
plugs: &default-plugs [network-bind, network-control, network-setup-control, network]
......@@ -107,3 +107,14 @@ apps:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/jrcp/lib
command: "bin/init_A71CH_iot_hub"
plugs: *default-plugs
jrcp-server-sh:
environment:
LD_LIBRARY_PATH: $SNAP/sci2c/lib:$LD_LIBRARY_PATH
command: "bin/start-simple-server"
plugs: *default-plugs
jrcp-server-direct:
environment:
LD_LIBRARY_PATH: $SNAP/sci2c/lib:$LD_LIBRARY_PATH
command: "bin/simple_server"
plugs: *default-plugs
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