install hook failed - curl init.d/gitlab does not handle redirect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gitlab (Juju Charms Collection) |
Fix Released
|
High
|
Martin Hilton |
Bug Description
The init_script function in the install hook executes this line:
sudo curl --output /etc/init.d/gitlab https:/
Because github sends an HTTP/1.1 301 Moved Permanently back and curl doesn't follow it by default it fails the next statement in the init_script function. The 301 redirects to: https:/
To fix this, line 165 in /hooks/install stating: "sudo curl --output /etc/init.d/gitlab https:/
Notice:
* I changed the URI to point to the new location at raw.githubuserc
* I added the -L option to curl so curl will follow future 301 responses.
Changed in gitlab (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in gitlab (Juju Charms Collection): | |
assignee: | nobody → Martin Hilton (martin-hilton) |
Changed in gitlab (Juju Charms Collection): | |
status: | New → Fix Released |
I can confirm that gitlab does not install on precise.
I also can confirm that -L seems to fix the problem with the redirect. Also the following command seems to work: /raw.github. com/gitlabhq/ gitlab- recipes/ 4-1-stable/ init.d/ gitlab
sudo wget -O /etc/init.d/gitlab https:/