Created
December 31, 2010 13:51
-
-
Save tumf/761017 to your computer and use it in GitHub Desktop.
クローンしたホストに、サーバのホストネームを設定する為のコード
This file contains 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
# 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