Skip to content

Commit

Permalink
use get_node_modules_url in platform.sh to determine fnm url
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyc committed Nov 7, 2018
1 parent 676bd47 commit 786c852
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion platform/blue/platform.sh
Expand Up @@ -6,7 +6,6 @@ FIREMON_MAX_MEMORY=240000
FIREAPI_MAX_MEMORY=200000
MAX_NUM_OF_PROCESSES=4000
MAX_NUM_OF_THREADS=20000
export NODE_MODULE_REPO=https://github.com/firewalla/fnm.node8.aarch64

function heartbeatLED {
sudo sh -c 'echo none > /sys/devices/platform/leds/leds/nanopi:green:status/trigger' # intentionally not use green light as it is hard to be seen
Expand Down
1 change: 0 additions & 1 deletion platform/docker/platform.sh
Expand Up @@ -6,7 +6,6 @@ FIREMON_MAX_MEMORY=240000
FIREAPI_MAX_MEMORY=200000
MAX_NUM_OF_PROCESSES=4000
MAX_NUM_OF_THREADS=20000
export NODE_MODULE_REPO=https://github.com/firewalla/fnm.node8.x86_64


function heartbeatLED {
Expand Down
1 change: 0 additions & 1 deletion platform/red/platform.sh
Expand Up @@ -6,7 +6,6 @@ FIREMON_MAX_MEMORY=120000
FIREAPI_MAX_MEMORY=100000
MAX_NUM_OF_PROCESSES=2000
MAX_NUM_OF_THREADS=10000
export NODE_MODULE_REPO=https://github.com/firewalla/fnm.node8.armv7l

function heartbeatLED {
sudo sh -c 'echo heartbeat > /sys/class/leds/nanopi:blue:status/trigger'
Expand Down
1 change: 1 addition & 0 deletions scripts/common.sh
Expand Up @@ -17,6 +17,7 @@ function update_node_modules {
( cd $FIREWALLA_HOME

CPU_PLATFORM=$(uname -m)
export NODE_MODULE_REPO=$(get_node_modules_url)

if [[ $branch =~ release.* ]]; then
# record production branch in redis
Expand Down
1 change: 1 addition & 0 deletions scripts/main-start
Expand Up @@ -31,6 +31,7 @@ MGIT=$(PATH=$PI_HOME/scripts:$FIREWALLA_HOME/scripts; /usr/bin/which mgit||echo
# use github to pull node modules to ~/.node_modules
export FIREWALLA_NODE_MODULES_MODE=GIT

NODE_MODULE_REPO=$(get_node_modules_url)
logger "Node module repo: $NODE_MODULE_REPO"

export NODE_PATH=~/.node_modules:$NODE_PATH
Expand Down
1 change: 1 addition & 0 deletions scripts/prep/01_node_modules_setup.sh
Expand Up @@ -3,6 +3,7 @@
rc=0

: ${NM_DIR:=/home/pi/.node_modules}
mkdir -p $NM_DIR
: ${FIREWALLA_HOME:=/home/pi/firewalla}
source ${FIREWALLA_HOME}/platform/platform.sh

Expand Down

0 comments on commit 786c852

Please sign in to comment.