From e606fe4288e31eeef1d90a62773bdc946e650381 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Sun, 22 Mar 2009 23:39:45 +0000 Subject: * Set the configuration file to jaunty. * ec2-fetch-credentials: Fix typo. * ec2-set-defaults.py: - Remove timezone change when booting the instance. - Redirect output to /dev/null. * ec2-set-apt-sources.py: - Run apt-get update after the /etc/apt/sources.list and redirect the output to /dev/null. * rightscale-init: Updated rightscale-init --- debian/ec2-init.rightscale-init.init | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'debian/ec2-init.rightscale-init.init') diff --git a/debian/ec2-init.rightscale-init.init b/debian/ec2-init.rightscale-init.init index 4a1c52af..10ba39d3 100644 --- a/debian/ec2-init.rightscale-init.init +++ b/debian/ec2-init.rightscale-init.init @@ -1,16 +1,7 @@ -#!/bin/sh - -### BEGIN INIT INFO -# Provides: rightscale -# Required-Start: -# Required-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 1 -# Sort-Description: Setup Righscale - +#!/bin/bash +# # This script will configure an Ubuntu server for use with RightScale - -set -e +# start() { ## First check to see if we were launched through RightScale. Exit and remove if not... @@ -32,7 +23,7 @@ start() { echo "Installing necessary packages..." export DEBIAN_FRONTEND=NONINTERACTIVE apt-get update - apt-get install -y binutils sysv-rc-conf unzip ruby1.8-dev autoconf automake libtool logrotate rsync openssl ca-certificates + apt-get install -y binutils ruby1.8 sysv-rc-conf unzip ruby1.8-dev build-essential autoconf automake libtool logrotate rsync openssl ca-certificates libopenssl-ruby1.8 ## Add rightscale customizations echo "Installing RightScale" @@ -90,10 +81,9 @@ stop() { } remove() { - my_name=`basename $0` - init_script_name=${my_name:3} - update-rc.d -f $init_script_name remove - rm -f /etc/init.d/$init_script_name + my_name=`readlink -e $0` + update-rc.d -f `basename $my_name` remove + rm -f $my_name } -- cgit v1.2.3