From bbd3146f7c1364526b5600ae3d24f4ccf1f0e8fa Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Thu, 3 Dec 2020 13:59:23 +0100 Subject: [PATCH] update: finable around npm crappy ownership issues --- scripts/bash/update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bash/update.sh b/scripts/bash/update.sh index 30ea13c..e591b0c 100755 --- a/scripts/bash/update.sh +++ b/scripts/bash/update.sh @@ -21,7 +21,11 @@ function special(){ fi if ! [ -x "$(hash thumbsup &> /dev/null)" ] ; then ${log} "thumbsup is not installed, installing now" - sudo npm install -g thumbsup + sudo chown -R pi:pi /usr/lib/node_modules/ + if npm install -g thumbsup; then + ${log} "Error when installing thumbsup" + fi + sudo chown -R root:root /usr/lib/node_modules/ fi }