-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Repository - Overview
BitBucket doesn't seem to like the FreeBSD fetch command authenticating and downloading files from a private repo. This makes it difficult to download a post-install script on a fresh installation (where wget is not included by default).
However, changing the fetch user-agent string from "fetch libfetch/2.0" to "Wget/1.16 (freebsd10.0)" does allow authentication. So perhaps relying on user-agent strings is not the way to go.
The following does not work:
~# fetch --no-verify-peer "https://myname:mypass@bitbucket.org/me/server/raw/abcde...xyz/post-install.sh"
However, the following does work:
~# fetch --no-verify-peer --user-agent "Wget/1.16 (freebsd10.0)" "https://myname:mypass@bitbucket.org/me/server/raw/abcde...xyz/post-install.sh"