From cc137bba7905790347418f184c6b02d01af3e225 Mon Sep 17 00:00:00 2001
From: Sytse Sijbrandij <sytse@dosire.com>
Date: Sun, 2 Sep 2012 22:41:21 +0200
Subject: [PATCH] Update the references to the script and refer to it from the
 installation manual.

Update the references to the script and refer to it from the installation manual.

Indent the code block.
---
 doc/installation.md                  | 6 ++++++
 lib/support/aws/debian_ubuntu_aws.sh | 7 ++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/doc/installation.md b/doc/installation.md
index efed21f0..4cb873f0 100644
--- a/doc/installation.md
+++ b/doc/installation.md
@@ -51,6 +51,12 @@ Also read the [Read this before you submit an issue](https://github.com/gitlabhq
 >     curl https://raw.github.com/gitlabhq/gitlabhq/master/doc/debian_ubuntu.sh | sh
 >
 > Now you can go to step 4"
+>
+> Or if you are installing on  Amazon Web Services using Ubuntu 12.04 you can do all steps (1 to 6) at once with:
+>
+>     curl https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/aws/debian_ubuntu_aws.sh | sh
+>
+> for more detailed instructions read the HOWTO section of [the script](https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/aws/debian_ubuntu_aws.sh)
 > - - -
 
 # 1. Install packages
diff --git a/lib/support/aws/debian_ubuntu_aws.sh b/lib/support/aws/debian_ubuntu_aws.sh
index 962ee008..c4103ec9 100644
--- a/lib/support/aws/debian_ubuntu_aws.sh
+++ b/lib/support/aws/debian_ubuntu_aws.sh
@@ -6,9 +6,6 @@
 # This script only works on Amazon Web Services (AWS).
 # The operating system used is Ubuntu 12.04 64bit.
 
-# TODO
-# @dosire will send a pull request after this is merged in to change dosire/gitlabhq/non-interactive-aws-install links to gitlabhq/gitlabhq/master and reference this script from installation.md
-
 # HOWTO
 # Signup for AWS, free tier are available at http://aws.amazon.com/free/
 # Go to EC2 tab in the AWS console EC2 https://console.aws.amazon.com/ec2/home
@@ -33,7 +30,7 @@
 # Give the following command in your local terminal while suptituting the UPPERCASE items
 # 'ssh -i LOCATION_OF_AWS_KEY_PAIR_PRIVATE_KEY PUBLIC_DNS_OF_THE_NEW_SERVER'
 # Execute the curl command below and when its ready follow the printed 'Log in instuctions'
-# curl https://raw.github.com/dosire/gitlabhq/non-interactive-aws-install/lib/support/aws/debian_ubuntu_aws.sh | sh
+# curl https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/aws/debian_ubuntu_aws.sh | sh
 
 # Prevent fingerprint prompt for localhost in step 1 to 3.
 echo "Host localhost
@@ -41,7 +38,7 @@ echo "Host localhost
    UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
 
 # Existing script for Step 1 to 3
-curl https://raw.github.com/dosire/gitlabhq/non-interactive-aws-install/doc/debian_ubuntu.sh | sh
+curl https://raw.github.com/gitlabhq/gitlabhq/master/doc/debian_ubuntu.sh | sh
 
 # Install MySQL
 sudo apt-get install -y makepasswd # Needed to create a unique password non-interactively.