sphinx-relay: remove sudo from status

fixes the fresh install as in:
https://github.com/rootzoll/raspiblitz/issues/2089
This commit is contained in:
openoms 2021-03-24 08:21:15 +00:00
parent 47f3455704
commit 7618de383e
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -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