1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Remove dependency on hostname (#182)

This commit is contained in:
Tim Byrne
2019-11-30 10:27:28 -06:00
parent 75c19c9cc0
commit 96839a5743
3 changed files with 3 additions and 8 deletions

2
yadm
View File

@@ -473,7 +473,7 @@ function set_local_alt_values() {
local_host="$(config local.hostname)"
if [ -z "$local_host" ] ; then
local_host=$(hostname)
local_host=$(uname -n)
local_host=${local_host%%.*} # trim any domain from hostname
fi