This commit is contained in:
I2obiN 2017-05-14 15:52:31 +00:00 committed by GitHub
commit 101d137446

View File

@ -5,6 +5,18 @@ if who | grep -wq $USER; then
exit
fi
# Get user home path and username
PATH=~
# sets hangover.sh write permission
chmod +x ~/hangover.sh
# Checks to see if job is in crontab already and if not updates cronto run the script only on weekdays @ 8:45am
if ! crontab -u $USER -l | grep hangover.sh then
echo "45 8 * * 1-5 $PATH/hangover.sh" >> newcronjob
crontab newcronjob
fi
# Phone numbers
MY_NUMBER='+xxx'
NUMBER_OF_BOSS='+xxx'