Skip to content

Instantly share code, notes, and snippets.

@tumf
Created December 31, 2010 13:51
Show Gist options
  • Save tumf/761017 to your computer and use it in GitHub Desktop.
Save tumf/761017 to your computer and use it in GitHub Desktop.
クローンしたホストに、サーバのホストネームを設定する為のコード
# add to /etc/rc.local
sp_hostname=`curl -L http://10.10.11.95/server-provision/server.instance_id 2>/dev/null`
if [ -n $sp_hostname ]; then
hostname $sp_hostname
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment