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:
parent
067654e268
commit
93f9700c2c
1 changed files with 0 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue