-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated omnibus
postinst
script to symlink to appbundle created bin…
…stubs (#2732) * Updated `postinst` script to symlink to appbundle created binstubs rather than rubygems binstubs in embedded directory. The rubygems binstubs do not account for GEM_HOME or GEM_PATHS existing in the invoking shell. This creates problems on systems with multiple ruby versions. If GEM_HOME or GEM_PATH is set the rubygems embedded binstubs will attempt to use this external gem source which will generally result in errors for the user. Signed-off-by: Miah Johnson <miah@chia-pet.org>
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@ECHO OFF | ||
|
||
REM ; Set GEM_HOME and GEM_PATH to verify our appbundle inspec shim is correctly | ||
REM ; removing them from the environment while launching from our embedded ruby. | ||
SET GEM_HOME=C:\SHOULD_NOT_EXIST | ||
SET GEM_PATH=C:\SHOULD_NOT_EXIST | ||
|
||
cd C:\opscode\inspec\bin | ||
inspec version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -evx | ||
|
||
# Set GEM_HOME and GEM_PATH to verify our appbundle inspec shim is correctly | ||
# removing them from the environment while launching from our embedded ruby. | ||
export GEM_HOME=/SHOULD_NOT_EXIST | ||
export GEM_PATH=/SHOULD_NOT_EXIST | ||
|
||
export PATH=$PATH:/usr/local/bin | ||
inspec version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters