From 15131e583652f5ced0a9e9dce51b2a7d335aec00 Mon Sep 17 00:00:00 2001 From: Hristo Date: Sat, 27 Jan 2024 20:06:11 +0200 Subject: [PATCH] update install script to run the monitor from its installation path so that git sensor works --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ae2364c..c03fbcb 100755 --- a/install.sh +++ b/install.sh @@ -131,8 +131,8 @@ set_cron(){ MIN=2 fi echo "Adding the line below to your crontab" - echo "*/${MIN} * * * * ${python} ${cwd}/src/rpi-cpu2mqtt.py" - echo "*/${MIN} * * * * ${python} ${cwd}/src/rpi-cpu2mqtt.py" >> tempcron + echo "*/${MIN} * * * * cd ${cwd}; ${python} ${cwd}/src/rpi-cpu2mqtt.py" + echo "*/${MIN} * * * * cd ${cwd}; ${python} ${cwd}/src/rpi-cpu2mqtt.py" >> tempcron crontab tempcron fi rm tempcron