This commit is contained in:
I2obiN 2022-09-28 21:24:33 -03:00 committed by GitHub
commit a5850316f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -1,10 +1,21 @@
#!/bin/sh -e
# Get User
USER=whoami
# Exit early if any session with my username is found
if who | grep -wq $USER; then
exit
fi
# Get user home path and username
PATH=~
# 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" >> /etc/crontab
fi
# Phone numbers
MY_NUMBER='+xxx'
NUMBER_OF_BOSS='+xxx'

View File

@ -1,10 +1,21 @@
#!/bin/sh -e
# Get User
USER=whoami
# Exit early if no sessions with my username are found
if ! who | grep -wq $USER; then
exit
fi
# Get user home path and username
PATH=~
# Checks to see if job is in crontab already and if not updates cronto run the script only on weekdays @ 9:01pm
if ! crontab -u $USER -l | grep smack-my-bitch-up.sh then
echo "01 9 * * 1-5 $PATH/smack-my-bitch-up.sh" >> /etc/crontab
fi
# Phone numbers
MY_NUMBER='+xxx'
HER_NUMBER='+xxx'