16 lines
476 B
Bash
Executable File
16 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
|
|
WELCOME_SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)"
|
|
USERIP=$("${SSH_CONNECTION%% *}")
|
|
FULLNAME=$(hostname).$(hostname --domain)
|
|
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 "$USERIP" "$USER" "$FULLNAME" |