Skip to content

Commit 68bc0f4

Browse files
committed
fix aws setup with new recipes
1 parent ebf8bd0 commit 68bc0f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/debian_ubuntu_aws.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
# Give the following command in your local terminal while suptituting the UPPERCASE items
3535
# 'ssh -i LOCATION_OF_AWS_KEY_PAIR_PRIVATE_KEY PUBLIC_DNS_OF_THE_NEW_SERVER'
3636
# Execute the curl command below and when its ready follow the printed 'Log in instuctions'
37-
# curl https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/aws/debian_ubuntu_aws.sh | sh
37+
# curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu_aws.sh | sh
3838

3939
# Prevent fingerprint prompt for localhost in step 1 to 3.
4040
echo "Host localhost
4141
StrictHostKeyChecking no
4242
UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
4343

4444
# Existing script for Step 1 to 3
45-
curl https://raw.github.com/gitlabhq/gitlabhq/master/doc/debian_ubuntu.sh | sh
45+
curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu.sh | sh
4646

4747
# Install MySQL
4848
sudo apt-get install -y makepasswd # Needed to create a unique password non-interactively.
@@ -79,7 +79,7 @@ sudo sed -i '0,/host/s/localhost/'`wget -qO- http://instance-data/latest/meta-da
7979

8080
# Install and configure Nginx
8181
sudo apt-get install -y nginx
82-
sudo cp /home/gitlab/gitlab/lib/support/nginx-gitlab /etc/nginx/sites-available/gitlab
82+
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/nginx/gitlab -P /etc/nginx/sites-available/
8383
sudo ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
8484
sudo sed -i 's/YOUR_SERVER_IP/'`wget -qO- http://instance-data/latest/meta-data/local-ipv4`'/' /etc/nginx/sites-available/gitlab # Set private ip address (public won't work).
8585
sudo sed -i 's/YOUR_SERVER_FQDN/'`wget -qO- http://instance-data/latest/meta-data/public-hostname`'/' /etc/nginx/sites-available/gitlab # Set public dns domain name.
@@ -88,7 +88,7 @@ sudo sed -i 's/YOUR_SERVER_FQDN/'`wget -qO- http://instance-data/latest/meta-dat
8888
sudo -u gitlab cp /home/gitlab/gitlab/config/unicorn.rb.orig /home/gitlab/gitlab/config/unicorn.rb
8989

9090
# Create a Gitlab service
91-
sudo cp /home/gitlab/gitlab/lib/support/init-gitlab /etc/init.d/gitlab
91+
sudo wget https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab -P /etc/init.d/
9292
sudo chmod +x /etc/init.d/gitlab && sudo update-rc.d gitlab defaults
9393

9494
## Gitlab service commands (unicorn and resque)

0 commit comments

Comments
 (0)