Sha256: b935ce06c18e9043436aa2a73ede671d046bf7ea11380ddb70ad61774967a3e5

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

#!/bin/sh

#    This file is part of EC2 on Rails.
#    http://rubyforge.org/projects/ec2onrails/
#
#    Copyright 2007 Paul Dowman, http://pauldowman.com/
#
#    EC2 on Rails is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    EC2 on Rails is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Set the hostname to this instance's public hostname

hostname `curl http://169.254.169.254/latest/meta-data/public-hostname`
sudo monit reload

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
hennk-ec2onrails-0.9.9.1 server/files/usr/local/ec2onrails/startup-scripts/every-startup/get-hostname.sh
hennk-hennk-ec2onrails-0.9.9.2 server/files/usr/local/ec2onrails/startup-scripts/every-startup/get-hostname.sh
hennk-hennk-ec2onrails-0.9.9.3 server/files/usr/local/ec2onrails/startup-scripts/every-startup/get-hostname.sh