This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Node 6 initial setup — run on Node 6 as ergons user | |
| set -e | |
| echo "=== Setting hostname ===" | |
| sudo scutil --set ComputerName "Node 6 - Data Node" | |
| sudo scutil --set LocalHostName "node6" | |
| sudo scutil --set HostName "node6.ergon.local" | |
| echo " ComputerName: $(sudo scutil --get ComputerName)" | |
| echo " LocalHostName: $(sudo scutil --get LocalHostName)" |