Commit 8a999633ea645896e11cf02508d0cef4451c9248
1 parent
d6a3e9a9
Exists in
master
and in
54 other branches
Copying and modifying init.d files
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
gitlab.spec
| ... | ... | @@ -120,6 +120,14 @@ cd /usr/lib/gitlab/ |
| 120 | 120 | yes yes | sudo -u git bundle exec rake gitlab:setup RAILS_ENV=production |
| 121 | 121 | bundle exec rake assets:precompile RAILS_ENV=production |
| 122 | 122 | |
| 123 | +cp /usr/lib/gitlab/lib/support/init.d/gitlab /etc/init.d/gitlab | |
| 124 | +cp /usr/lib/gitlab/lib/support/init.d/gitlab.default.example /etc/default/gitlab | |
| 125 | +cp /usr/lib/gitlab/lib/support/logrotate/gitlab /etc/logrotate.d/gitlab | |
| 126 | + | |
| 127 | +sed -i 's/app_root="\/home\/\$app_user\/gitlab"/app_root="\/usr\/lib\/gitlab"/' /etc/init.d/gitlab | |
| 128 | +sed -i 's/app_root="\/home\/\$app_user\/gitlab"/app_root="\/usr\/lib\/gitlab"/' /etc/default/gitlab | |
| 129 | +sed -i 's/\/home\/\git/\/usr\/lib/' /etc/logrotate.d/gitlab | |
| 130 | + | |
| 123 | 131 | %postun |
| 124 | 132 | #TODO Remove |
| 125 | 133 | sudo -u postgres psql -d template1 << EOF | ... | ... |