#!/bin/bash if [ "$EUID" != "0" ]; then echo "Run as root" exit 1 fi if [ -z "$AWS_ACCESS_KEY_ID" ]; then echo "Export AWS_ACCESS_KEY_ID" exit 1 fi if [ -z "$AWS_SECRET_ACCESS_KEY" ]; then echo "Export AWS_SECRET_ACCESS_KEY" exit 1 fi if [ ! -x "./ses-password-convert.py" ]; then curl -O https://code.crute.me/mcrute/dotfiles/plain/bin/ses-password-convert.py chmod +x ses-password-convert.py fi USER=mike DOMAIN=crute.us cat > /etc/ssmtp/ssmtp.conf <