Add Hostname to the check user data script

This commit is contained in:
Clemens Schwaighofer
2022-11-03 14:02:47 +09:00
parent 74bfded26f
commit 5db69276db

View File

@@ -32,6 +32,7 @@ fi;
LOG="${LOG}/check_ssh_user."$(date +"%F_%H%m%S")".log";
exec &> >(tee -a "${LOG}");
echo "[START] =============>";
echo "Hostname : "$(hostname);
echo "Run date : "$(date +"%F %T");
echo "Max age last login: ${max_age_login} days";
echo "Max age no login : ${max_age_create} days";