Skip to content

Instantly share code, notes, and snippets.

@vigevenoj
Created November 1, 2016 04:32
Show Gist options
  • Save vigevenoj/7353c7d434c5a74dbc459d6ec8f82841 to your computer and use it in GitHub Desktop.
Save vigevenoj/7353c7d434c5a74dbc459d6ec8f82841 to your computer and use it in GitHub Desktop.
Vagrant
#! /usr/bin/env bash
# This is to work around https://github.com/mitchellh/vagrant/issues/7747
#
# 1) Link the Vagrant-provided openssl executable to the right dylibs
# 2) Set OPENSSL_CONF to the actual location of the configuration file
# instead of /vagrant-substrate/staging/embedded, which doesn't exist
set -e
sudo install_name_tool -change "/vagrant-substrate/staging/embedded/lib/libssl.1.0.0.dylib" "/opt/vagrant/embedded/lib/libssl.1.0.0.dylib" /opt/vagrant/embedded/bin/openssl
sudo install_name_tool -change "/vagrant-substrate/staging/embedded/lib/libcrypto.1.0.0.dylib" "/opt/vagrant/embedded/lib/libcrypto.1.0.0.dylib" /opt/vagrant/embedded/bin/openssl
OPENSSL_CONF=/opt/vagrant/embedded/ssl/openssl.cnf /opt/vagrant/bin/vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment