File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ apt-get install -y cmake git-core
99apt-get install -y lua5.1 liblua5.1-0-dev luarocks
1010# install json-c
1111apt-get install -y dh-autoreconf
12- git clone https://github.com/json-c/json-c.git --depth=1 && cd json-c
13- sh autogen.sh && ./configure && make && make install && cd ..
12+ git clone https://github.com/json-c/json-c.git --depth=1
13+ cd json-c && cmake . && make install && cd .. || { echo ' Installing json-c failed! ' ; exit 1 ; }
1414# install openwrt libubox and uci
15- git clone https://git.openwrt.org/project/libubox.git --depth=1 && cd libubox
16- cmake . && make install && cd ..
17- git clone https://git.openwrt.org/project/uci.git --depth=1 && cd uci
18- cmake . && make install && cd ..
15+ git clone https://git.openwrt.org/project/libubox.git --depth=1
16+ cd libubox && cmake . && make install && cd .. || { echo ' Installing libubox failed! ' ; exit 1 ; }
17+ git clone https://git.openwrt.org/project/uci.git --depth=1
18+ cd uci && cmake . && make install && cd .. || { echo ' Installing uci failed! ' ; exit 1 ; }
1919# update links to shared libraries
2020ldconfig -v
2121# install luafilesystem
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
3- luacheck . -a
3+ luacheck ./openwisp-config/ -a
44cd openwisp-config/tests/
55lua test_store_unmanaged.lua -v
66lua test_restore_unmanaged.lua -v
You can’t perform that action at this time.
0 commit comments