Skip to content

Commit

Permalink
Fixed problem with directory for log files
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtner committed May 1, 2016
1 parent b53dfbc commit 41eac6c
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 3 deletions.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# control process.
#

LOGFILE = "/var/log/bbb"

if [ -z "$2" ]
then

Expand Down Expand Up @@ -102,7 +104,7 @@ do_all()
sudo cp /home/pi/BehovsBoBoxen/scripts/bbb_domoticz.sh /etc/init.d
sudo chmod 755 /etc/init.d/bbb_domoticz.sh
sudo update-rc.d bbb_domoticz.sh defaults

[ -e $LOGFILE ] || mkdir $LOGFILE
else
sudo cp /home/pi/BehovsBoBoxen/scripts/rc.local /etc/rc.local
sudo chmod 755 /etc/rc.local
Expand Down
2 changes: 1 addition & 1 deletion install.sh~
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ do_all()
# we get the new spotpricefile after 16:00 and recalculate the temperatures afte


cat /boot/config.txt |grep "dtoverlay=w1-gpio,gpiopin=4" || sudo tee -a /boot/config.txt
cat /boot/config.txt |grep "dtoverlay=w1-gpio,gpiopin=4" || echo "dtoverlay=w1-gpio,gpiopin=4" | sudo tee -a /boot/config.txt
# append "dtoverlay=..." to /boot/config.txt unless it's already there
#

Expand Down
2 changes: 1 addition & 1 deletion scripts/bbb_domoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
USERNAME = 'ubee' # update username and password to what is defined in Domoticz
PASSWORD = 'xyz'

LOGFILE = '/home/pi/bbb_addon/bbb_domoticz.log'
LOGFILE = '/var/log/bbb/bbb_domoticz.log'

def tracefunc(frame, event, arg, indent=[0]):
calltrace=""
Expand Down
Loading

0 comments on commit 41eac6c

Please sign in to comment.