update temper script
This commit is contained in:
parent
41deb6b501
commit
08fa6135fa
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue