File tree 3 files changed +10
-3
lines changed 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ production:
9
9
pool : 5
10
10
username : gitlab
11
11
password : ' gitlab'
12
- # host: localhost
12
+ host : localhost
13
13
# socket: /tmp/mysql.sock
14
14
15
15
#
@@ -23,6 +23,7 @@ development:
23
23
pool : 5
24
24
username : gitlab
25
25
password : ' gitlab'
26
+ host : localhost
26
27
# socket: /tmp/mysql.sock
27
28
28
29
# Warning: The database defined as "test" will be erased and
@@ -36,4 +37,5 @@ test: &test
36
37
pool : 5
37
38
username : gitlab
38
39
password : ' gitlab'
40
+ host : localhost
39
41
# socket: /tmp/mysql.sock
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ production:
8
8
pool: 5
9
9
username: gitlab
10
10
password: 'gitlab'
11
- # host: localhost
11
+ host: localhost
12
12
# port: 5432
13
13
# socket: /tmp/postgresql.sock
14
14
@@ -22,6 +22,7 @@ development:
22
22
pool: 5
23
23
username: gitlab
24
24
password: 'gitlab'
25
+ host: localhost
25
26
# socket: /tmp/postgresql.sock
26
27
27
28
#
@@ -34,6 +35,7 @@ staging:
34
35
pool: 5
35
36
username: gitlab
36
37
password: 'gitlab'
38
+ host: localhost
37
39
# socket: /tmp/postgresql.sock
38
40
39
41
# Warning: The database defined as "test" will be erased and
@@ -46,4 +48,5 @@ test: &test
46
48
pool: 5
47
49
username: gitlab
48
50
password: 'gitlab'
51
+ host: localhost
49
52
# socket: /tmp/postgresql.sock
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ gitlab_shell_install() {
88
88
#
89
89
gitlab_db_initialize () {
90
90
# determine needed database values
91
- DB_ADAPTER=$( dialog --radiolist " Choose Databse-Adapter for GitLab" 0 0 0 " mysql" " MySQL-Database Adapter" on " postgresql" " PostgreSQL-Database Adapter" off 3>&1 1>&2 2>&3 3>& -)
91
+ DB_ADAPTER=$( dialog --radiolist " Choose Database-Adapter for GitLab" 0 0 0 " mysql" " MySQL-Database Adapter" on " postgresql" " PostgreSQL-Database Adapter" off 3>&1 1>&2 2>&3 3>& -)
92
+ DB_SERVER=$( dialog --inputbox " Please enter the Database-Servername for GitLab." 0 0 " localhost" 3>&1 1>&2 2>&3 3>& -)
92
93
DB_DATABASE=$( dialog --inputbox " Please enter the Database for GitLab." 0 0 " gitlab" 3>&1 1>&2 2>&3 3>& -)
93
94
DB_USER=$( dialog --inputbox " Please enter the Database-User for GitLab." 0 0 " gitlab" 3>&1 1>&2 2>&3 3>& -)
94
95
DB_PASS=$( dialog --inputbox " Please enter the Database-Password for GitLab." 0 0 " gitlab" 3>&1 1>&2 2>&3 3>& -)
@@ -133,6 +134,7 @@ gitlab_db_initialize() {
133
134
fi
134
135
135
136
# place values into databse configuration
137
+ sed -i " s/host: localhost/host: $DB_SERVER /g" /etc/gitlab/database.yml.$DB_ADAPTER
136
138
sed -i " s/database: gitlab/database: $DB_DATABASE /g" /etc/gitlab/database.yml.$DB_ADAPTER
137
139
sed -i " s/username: gitlab/username: $DB_USER /g" /etc/gitlab/database.yml.$DB_ADAPTER
138
140
sed -i " s/password: 'gitlab'/password: '$DB_PASS '/g" /etc/gitlab/database.yml.$DB_ADAPTER
You can’t perform that action at this time.
0 commit comments