fix(macos): do not set local hostname

This one does not allow special chars like spaces, but is set anyway through the other commands.
This commit is contained in:
Saibotk 2024-12-03 00:17:17 +01:00
parent 067654e268
commit 93f9700c2c
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -56,7 +56,6 @@ echo "Setting hostname to $computername"
# Set computer name (as done via System Preferences → Sharing) # Set computer name (as done via System Preferences → Sharing)
sudo scutil --set ComputerName "$computername" sudo scutil --set ComputerName "$computername"
sudo scutil --set HostName "$computername" sudo scutil --set HostName "$computername"
sudo scutil --set LocalHostName "$computername"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$computername" sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$computername"
# Call the general install script to setup zsh etc. # Call the general install script to setup zsh etc.