update: finable around npm crappy ownership issues

This commit is contained in:
Romain Bazile 2020-12-03 13:59:23 +01:00
parent f1485c1b20
commit bbd3146f7c

View file

@ -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
}