update install script to run the monitor from its installation path so that git sensor works

This commit is contained in:
Hristo
2024-01-27 20:06:11 +02:00
parent f3c67ee3f1
commit 15131e5836

View File

@@ -131,8 +131,8 @@ set_cron(){
MIN=2 MIN=2
fi fi
echo "Adding the line below to your crontab" echo "Adding the line below to your crontab"
echo "*/${MIN} * * * * ${python} ${cwd}/src/rpi-cpu2mqtt.py" echo "*/${MIN} * * * * cd ${cwd}; ${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" >> tempcron
crontab tempcron crontab tempcron
fi fi
rm tempcron rm tempcron