Skip to content

Commit

Permalink
add PATH /usr/local/addons/redmatic/bin for jq
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodoVDR committed Jul 4, 2019
1 parent ec3ea9f commit 30db134
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sonoff.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
# set -x

version='0.14'
# Date: 2019-02-09
version='0.15'
# Date: 2019-07-04
# Changelog:
# small fixes, for wrong apikey
# add tasmota switch for user and password use variable apikey
Expand All @@ -16,6 +16,7 @@ version='0.14'
# change getopts to getopt, because CCU2 can't use getopts
# change curl path to /usr/local/addons/cuxd/curl
# extend PATH and check for commands
# add PATH /usr/local/addons/redmatic/bin for jq

# More Detail and how you enable espurna restapi:
# https://github.com/xoseperez/espurna/wiki/RESTAPI
Expand All @@ -27,6 +28,12 @@ version='0.14'
# ./sonoff.sh -f switch-p -c CUX2801004:5 -i 192.168.4.53

# extend PATH
if [ -d /usr/local/addons/redmatic/bin ] ; then
test=$(echo $PATH | grep '/usr/local/addons/redmatic/bin')
if [ $? -ne 0 ] ; then
PATH=$PATH:/usr/local/addons/redmatic/bin
fi
fi
if [ -d /usr/bin ] ; then
test=$(echo $PATH | grep '/usr/bin')
if [ $? -ne 0 ] ; then
Expand Down

0 comments on commit 30db134

Please sign in to comment.