Correction affichage adresse ip dans motd

This commit is contained in:
Navas 2022-05-19 15:09:40 +02:00
parent cc444cf591
commit 7efb297823
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ echo -e "$LIGHT_GREEN Utilisateurs connectes :$NONE $connecteduser"
printserverid(){
fqdn=$(hostname -f)
addrip=$(hostname -I)
addrip=$(ip address show dev eth0 | grep -w inet | awk '{print $2}')
echo -e "$LIGHT_GREEN FQDN :$NONE $fqdn$LIGHT_GREEN Adresse IP :$NONE $addrip"
}