Files
SaltStates/checkTempSetup.sh
Samuele-StackUser e29796954a Signed-off-by: Samuele-StackUser <ceo@steamware.net>
Added iob-pi states for raspberry
2020-06-03 18:52:31 +02:00

15 lines
368 B
Bash
Executable File

#!/bin/bash
# Purpose: fix permission + crontab setup
# -------------------------------------------------------
# fix permission
chmod +x /usr/local/bin/checkTemp.sh
# fix crontab... #write out current crontab
crontab -l > mycron
#echo new cron into cron file
echo "0/30 * * * * /usr/local/bin/checkTemp.sh" >> mycron
#install new cron file
crontab mycron
rm mycron