Commit ce4b03c0ad66035cea09f74a424b20ce81a158bf
1 parent
8a999633
Exists in
master
and in
79 other branches
Fixing home git path in Unicorn
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
gitlab.spec
@@ -79,6 +79,8 @@ mv config/gitlab.yml %{buildroot}/etc/gitlab/gitlab.yml | @@ -79,6 +79,8 @@ mv config/gitlab.yml %{buildroot}/etc/gitlab/gitlab.yml | ||
79 | cp config/unicorn.rb.example %{buildroot}/etc/gitlab/unicorn.rb | 79 | cp config/unicorn.rb.example %{buildroot}/etc/gitlab/unicorn.rb |
80 | cp config/database.yml.postgresql %{buildroot}/etc/gitlab/database.yml | 80 | cp config/database.yml.postgresql %{buildroot}/etc/gitlab/database.yml |
81 | 81 | ||
82 | +sed -i 's/\/home\/\git/\/usr\/lib/' %{buildroot}/etc/gitlab/unicorn.rb | ||
83 | + | ||
82 | mkdir -p %{buildroot}/usr/lib/gitlab | 84 | mkdir -p %{buildroot}/usr/lib/gitlab |
83 | cp -r app bin config config.ru db doc GITLAB_SHELL_VERSION lib Procfile public Rakefile vendor VERSION %{buildroot}/usr/lib/gitlab/ | 85 | cp -r app bin config config.ru db doc GITLAB_SHELL_VERSION lib Procfile public Rakefile vendor VERSION %{buildroot}/usr/lib/gitlab/ |
84 | mv %{buildroot}/usr/lib/gitlab/config/initializers/rack_attack.rb.example %{buildroot}/usr/lib/gitlab/config/initializers/rack_attack.rb | 86 | mv %{buildroot}/usr/lib/gitlab/config/initializers/rack_attack.rb.example %{buildroot}/usr/lib/gitlab/config/initializers/rack_attack.rb |
@@ -99,7 +101,6 @@ fi | @@ -99,7 +101,6 @@ fi | ||
99 | if [ -x /usr/bin/postgres ]; then | 101 | if [ -x /usr/bin/postgres ]; then |
100 | service postgresql initdb || true | 102 | service postgresql initdb || true |
101 | service postgresql start | 103 | service postgresql start |
102 | - service postgresql enable | ||
103 | sudo -u postgres createuser --createdb git || true | 104 | sudo -u postgres createuser --createdb git || true |
104 | fi | 105 | fi |
105 | mkdir -p /var/log/gitlab | 106 | mkdir -p /var/log/gitlab |
@@ -111,7 +112,6 @@ mkdir -p /var/lib/gitlab/tmp | @@ -111,7 +112,6 @@ mkdir -p /var/lib/gitlab/tmp | ||
111 | chown -R git:git /var/lib/gitlab | 112 | chown -R git:git /var/lib/gitlab |
112 | if [ /usr/bin/redis-server ]; then | 113 | if [ /usr/bin/redis-server ]; then |
113 | service redis start | 114 | service redis start |
114 | - service redis enable | ||
115 | fi | 115 | fi |
116 | 116 | ||
117 | mkdir -p /var/lib/gitlab-assets | 117 | mkdir -p /var/lib/gitlab-assets |