mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 00:32:52 +00:00
fix: Correct hostname check (Thanks szescxz)
This commit is contained in:
parent
4092a1584d
commit
9368037631
@ -194,7 +194,7 @@ fi
|
|||||||
# If the hostname is too long Distrobox will fail during setup
|
# If the hostname is too long Distrobox will fail during setup
|
||||||
# Additonally, Anaconda likes to set the hostname to be the ipv6 address
|
# Additonally, Anaconda likes to set the hostname to be the ipv6 address
|
||||||
# Let's check the length and reset it to something sensible if that happens.
|
# Let's check the length and reset it to something sensible if that happens.
|
||||||
if hostname | wc -m > 15; then
|
if (( $(hostname | wc -m) > 16 )); then
|
||||||
hostnamectl set-hostname bazzite
|
hostnamectl set-hostname bazzite
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user