update: finable around npm crappy ownership issues
This commit is contained in:
parent
f1485c1b20
commit
bbd3146f7c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue