fix hostname problem
This commit is contained in:
parent
83c3c1b9b3
commit
9108ca7a91
@ -33,7 +33,7 @@ alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/env
|
||||
|
||||
if ! is_scp; then
|
||||
if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then
|
||||
host_domain=$(hostname -d)
|
||||
host_domain=$(cat /etc/hostname| rev | cut -d. -f1-2 | rev)
|
||||
host_fqdn=$(hostname)
|
||||
host_short=$(hostname -s)
|
||||
ip=$(hostname -I)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user