From 7618de383ed60da479b5d0e022db9b0781fe7ace Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 24 Mar 2021 08:21:15 +0000 Subject: [PATCH] sphinx-relay: remove sudo from status fixes the fresh install as in: https://github.com/rootzoll/raspiblitz/issues/2089 --- home.admin/config.scripts/bonus.sphinxrelay.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/config.scripts/bonus.sphinxrelay.sh b/home.admin/config.scripts/bonus.sphinxrelay.sh index ec031535d..2d2d04994 100755 --- a/home.admin/config.scripts/bonus.sphinxrelay.sh +++ b/home.admin/config.scripts/bonus.sphinxrelay.sh @@ -303,7 +303,7 @@ if [ "$1" = "status" ]; then echo "connectionTest='${connectionTest}'" # check if already an app was connected to relay (after that a second connection will not work) - connectionApp=$(sudo sqlite3 /mnt/hdd/app-data/sphinxrelay/sphinx.db "SELECT * FROM sphinx_contacts WHERE auth_token IS NOT NULL;" 2>/dev/null | grep -c "1||") + connectionApp=$(sqlite3 /mnt/hdd/app-data/sphinxrelay/sphinx.db "SELECT * FROM sphinx_contacts WHERE auth_token IS NOT NULL;" 2>/dev/null | grep -c "1||") echo "connectionApp=${connectionApp}" exit 0