From daa12c4e80287d2c65478b10411042e89ccb2189 Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 5 Aug 2019 13:59:43 +0200 Subject: [PATCH] server_optimize --- server_optimize.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server_optimize.sh b/server_optimize.sh index e2b2dc4..dd5841b 100755 --- a/server_optimize.sh +++ b/server_optimize.sh @@ -72,15 +72,16 @@ function makeuser() { function userloginalert() { - apt install finger -y + apt install s-nail -y + echo "#!/bin/bash echo "Login auf $(hostname) am $(date +%Y-%m-%d) um $(date +%H:%M)" echo "Benutzer: $USER" echo - finger" >> /opt/shell-login.sh + pinky" >> /opt/shell-login.sh - echo "/opt/shell-login.sh | mailx -s "SSH-Log-in auf ihrem Server $(cat /etc/hostname)" bahn01@online.de" > /etc/profile + echo "/opt/shell-login.sh | mailx -s "SSH-Log-in auf ihrem Server $(cat /etc/hostname)" simon.rieger@mailbox.org" > /etc/profile chmod 755 /opt/shell-login.sh }