diff options
| author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-07 10:15:27 -0800 |
|---|---|---|
| committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-07 10:15:27 -0800 |
| commit | 0a1603992490d47b3fe676a02dedb5417603a1f2 (patch) | |
| tree | 9e15f71814b1a406557bcb242fdc9eb9231a2873 | |
| parent | 9be4c5558f9f6dd04a03573f982d69abefafcef4 (diff) | |
| parent | 3e89244e08ed79564c0c483cb1f810936d661996 (diff) | |
| download | gitlab-ce-0a1603992490d47b3fe676a02dedb5417603a1f2.tar.gz | |
Merge pull request #2504 from mitchty/sles_changes
Update info.rake to be able to run successfully on SuSE.
| -rw-r--r-- | lib/tasks/gitlab/info.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake index 3fbedda7721..fcd590134d6 100644 --- a/lib/tasks/gitlab/info.rake +++ b/lib/tasks/gitlab/info.rake @@ -12,6 +12,9 @@ namespace :gitlab do debian_version = File.read('/etc/debian_version') "Debian #{debian_version}" end + os_name ||= if File.readable?('/etc/SuSE-release') + File.read('/etc/SuSE-release') + end os_name.squish! # check if there is an RVM environment |
