update temper script

This commit is contained in:
Nico Schottelius 2020-12-03 20:11:33 +01:00
parent 41deb6b501
commit 08fa6135fa
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ mv temper-py-0.0.1/temper.py /usr/bin
rmdir temper-py-0.0.1
chmod a+rx /usr/bin/temper.py
if ! grep -q temper /etc/crontabs/root; then
echo "*/5 * * * * /usr/bin/temper.py awk '{ print $7 " " $8 }' > /www/temperature.txt" >> /etc/crontabs/root
fi
EOF
exit 0