diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 73591241..4ab48baf 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -164,7 +164,15 @@ function nodejs_upgrade { return fi if grep -q "node_8.x" /etc/apt/sources.list.d/nodesource.list; then - return + if [ -f /usr/local/bin/node ]; then + return + fi + fi + if [ -f /usr/local/bin/node ]; then + CURR_NODE_VERSION=$(node --version) + if [[ "$CURR_NODE_VERSION" == "v${NODEJS_VERSION}" ]]; then + return + fi fi rootdir= mesh_install_nodejs