update install script to run the monitor from its installation path so that git sensor works
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user