Skip to content

Commit 0dd5a61

Browse files
committed
ssh_host
1 parent f0d961c commit 0dd5a61

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

install/v4/ubuntu_server_1204.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
# curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/v4/ubuntu_server_1204.sh | sudo domain_var=gitlab.example.com sh
1919
#
2020

21-
echo "Host localhost
22-
StrictHostKeyChecking no
23-
UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
24-
2521

2622
#==
2723
#== 0. FQDN
@@ -34,6 +30,14 @@ else
3430
exit
3531
fi
3632

33+
echo "Host localhost
34+
StrictHostKeyChecking no
35+
UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
36+
37+
echo "Host $domain_var
38+
StrictHostKeyChecking no
39+
UserKnownHostsFile=/dev/null" | sudo tee -a /etc/ssh/ssh_config
40+
3741

3842
#==
3943
#== 1. Packages
@@ -149,6 +153,7 @@ sudo -u gitlab -H cp config/gitlab.yml.example config/gitlab.yml
149153
sudo -u gitlab -H cp config/database.yml.mysql config/database.yml
150154
sudo sed -i 's/"secure password"/"'$userPassword'"/' /home/gitlab/gitlab/config/database.yml # Insert the mysql root password.
151155
sudo sed -i "s/ host: localhost/ host: $domain_var/" /home/gitlab/gitlab/config/gitlab.yml
156+
sudo sed -i "s/ssh_host: localhost/ssh_host: $domain_var/" /home/gitlab/gitlab/config/gitlab.yml
152157
sudo sed -i "s/notify@localhost/notify@$domain_var/" /home/gitlab/gitlab/config/gitlab.yml
153158

154159
# Copy the example Unicorn config

0 commit comments

Comments
 (0)