Linux_frogg-profile.d/inc/mail_connect.sh

14 lines
412 B
Bash
Executable File

#!/bin/bash
if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
WELCOME_SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)"
fi
#region INCLUDES
. "${WELCOME_SCRIPT_PATH}/config/config_colors.sh"
. "${WELCOME_SCRIPT_PATH}/func/message.sh"
. "${WELCOME_SCRIPT_PATH}/func/mail.sh"
. "${WELCOME_SCRIPT_PATH}/func/network.sh"
#endregion
send_login_mail "${SSH_CONNECTION%% *}" "$USER" "$(hostname)"