From bb8b3225d9dba718cfc596a9d5aa71efa86e4357 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Thu, 3 Dec 2020 18:00:40 +0100 Subject: [PATCH] update: fix major fuckup --- scripts/bash/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bash/update.sh b/scripts/bash/update.sh index 0c4f748..139959e 100755 --- a/scripts/bash/update.sh +++ b/scripts/bash/update.sh @@ -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"