update: finable around npm crappy ownership issues
This commit is contained in:
parent
f1485c1b20
commit
bbd3146f7c
|
@ -21,7 +21,11 @@ function special(){
|
||||||
fi
|
fi
|
||||||
if ! [ -x "$(hash thumbsup &> /dev/null)" ] ; then
|
if ! [ -x "$(hash thumbsup &> /dev/null)" ] ; then
|
||||||
${log} "thumbsup is not installed, installing now"
|
${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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue