update: fix major fuckup

This commit is contained in:
Romain Bazile 2020-12-03 18:00:40 +01:00
parent 13cbe54208
commit bb8b3225d9

View file

@ -22,7 +22,7 @@ function special(){
if ! [ -x "$(hash thumbsup &> /dev/null)" ] ; then
${log} "thumbsup is not installed, installing now"
sudo chown -R pi:pi /usr/lib/node_modules/
sudo chown -R pi:pi /usr/bin/
sudo chown pi:pi /usr/bin
if npm install -g thumbsup; then
${log} "Error when installing thumbsup"
else
@ -33,7 +33,7 @@ function special(){
thumbsup --config /home/pi/PlanktonScope/scripts/thumbsup/config.json
fi
sudo chown -R root:root /usr/lib/node_modules/
sudo chown -R root:root /usr/bin
sudo chown root:root /usr/bin
fi
if ! [[ -f "/etc/nginx/sites-available/gallery.conf" ]]; then
${log} "Nginx config is not installed, doing that now"