Skip to content
This repository

Adding INSTALL_PATH option #30

Merged
merged 3 commits into from almost 3 years ago

2 participants

Adam Jahnke Greg Thornton
Adam Jahnke

No description provided.

Greg Thornton
Owner

Looks good, except I'm not sure we should be tacking .ievms on to the end of INSTALL_PATH. I kinda feel like if you're overriding the default (~/.ievms) then you should get exactly what you ask for, right? If you don't mind adding another example to the README too, that'd be very helpful. Thanks a lot!

Adam Jahnke

Good call - Agreed. Those changes have been made.

Greg Thornton xdissent merged commit 7a9dfb8 into from
Greg Thornton
Owner

Love it. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 3 unique commits by 1 author.

Sep 28, 2011
Adam Jahnke Allowing for INSTALL_PATH var. 071f921
Adam Jahnke Adding INSTALL_PATH option 9861e23
Sep 29, 2011
Adam Jahnke Taking .ievms off of custom path, updating README 560f2cc
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 16 additions and 2 deletions. Show diff stats Hide diff stats

  1. +8 0 README.rst
  2. +8 2 ievms.sh
8 README.rst
Source Rendered
@@ -58,6 +58,14 @@ and rerun the install.
58 58 If nothing else, you can delete ``~/.ievms`` and rerun the install.
59 59
60 60
  61 +Specifying the install path
  62 +---------------------------
  63 +
  64 +To specify where the VMs are installed, use the INSTALL_PATH variable:
  65 +
  66 + curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | INSTALL_PATH="/Path/to/.ievms" bash
  67 +
  68 +
61 69 Features
62 70 ========
63 71
10 ievms.sh
@@ -11,7 +11,13 @@ log() { printf "$*\n" ; return $? ; }
11 11 fail() { log "\nERROR: $*\n" ; exit 1 ; }
12 12
13 13 create_home() {
14   - ievms_home="${HOME}/.ievms"
  14 + if [[ -z "${INSTALL_PATH}" ]]
  15 + then
  16 + ievms_home="${HOME}/.ievms"
  17 + else
  18 + ievms_home="${INSTALL_PATH}"
  19 + fi
  20 +
15 21 mkdir -p "${ievms_home}"
16 22 cd "${ievms_home}"
17 23 }
@@ -150,7 +156,7 @@ build_ievm() {
150 156 log "Checking for existing ${vm} VM"
151 157 if ! VBoxManage showvminfo "${vm}"
152 158 then
153   -
  159 +
154 160 case $kernel in
155 161 Darwin) ga_iso="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso" ;;
156 162 Linux) ga_iso="/usr/share/virtualbox/VBoxGuestAdditions.iso" ;;

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.