hack/openbsd: use cdn.openbsd.org for PKG_PATH
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = "pygolo/openbsd7"
|
config.vm.box = "pygolo/openbsd7"
|
||||||
config.vm.box_version = "7.5"
|
config.vm.box_version = "7.7"
|
||||||
config.vm.boot_timeout = 900
|
config.vm.boot_timeout = 900
|
||||||
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
||||||
config.ssh.keep_alive = true
|
config.ssh.keep_alive = true
|
||||||
@@ -11,7 +11,7 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.provision "init", type: "shell", run: "once" do |sh|
|
config.vm.provision "init", type: "shell", run: "once" do |sh|
|
||||||
sh.inline = <<~SHELL
|
sh.inline = <<~SHELL
|
||||||
set -ex
|
set -ex
|
||||||
export PKG_PATH=https://mirrors.ocf.berkeley.edu/pub/OpenBSD/7.5/packages/amd64/
|
export PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(machine -a)/
|
||||||
pkg_add -x git
|
pkg_add -x git
|
||||||
|
|
||||||
ftp https://go.dev/dl/go#{ENV['GO_VERSION']}.openbsd-amd64.tar.gz
|
ftp https://go.dev/dl/go#{ENV['GO_VERSION']}.openbsd-amd64.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user