19 lines
643 B
Bash
Executable File
19 lines
643 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script is supposed to be run within a shielded* vagrant environment.
|
|
# It's job is to send a bunch of test emails, for testing purposes.
|
|
# If you really intend to run this on your own, you need to pass the flag
|
|
# --LETS-REALLY-DO-THIS-AND-SEND-MAIL to it.
|
|
#
|
|
# I don't want this script to do damage.
|
|
if [[ "$1" != "--LETS-REALLY-DO-THIS-AND-SEND-MAIL" ]]; then
|
|
echo "WORD OF WARNING"
|
|
echo
|
|
echo "DO NOT RUN THIS OUT OF A SHIELDED VAGRANT BOX!"
|
|
echo "TO PROCEED RUNNING THIS TOOL, PROVIDE THE ARGUMENT"
|
|
echo "--LETS-REALLY-DO-THIS-AND-SEND-MAIL"
|
|
exit 1;
|
|
fi
|
|
|
|
echo "LOL" | mail -s "Testmail" jpt@jpt.lu
|