Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding INSTALL_PATH option #30

Merged
merged 3 commits into from

2 participants

@adamyonk

No description provided.

Adam Jahnke added some commits
@xdissent
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!

@adamyonk

Good call - Agreed. Those changes have been made.

@xdissent xdissent merged commit 7a9dfb8 into xdissent:master
@xdissent
Owner

Love it. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 28, 2011
  1. Allowing for INSTALL_PATH var.

    Adam Jahnke authored
  2. Adding INSTALL_PATH option

    Adam Jahnke authored
Commits on Sep 29, 2011
  1. Taking .ievms off of custom path, updating README

    Adam Jahnke authored
This page is out of date. Refresh to see the latest.
Showing with 16 additions and 2 deletions.
  1. +8 −0 README.rst
  2. +8 −2 ievms.sh
View
8 README.rst
@@ -58,6 +58,14 @@ and rerun the install.
If nothing else, you can delete ``~/.ievms`` and rerun the install.
+Specifying the install path
+---------------------------
+
+To specify where the VMs are installed, use the INSTALL_PATH variable:
+
+ curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | INSTALL_PATH="/Path/to/.ievms" bash
+
+
Features
========
View
10 ievms.sh
@@ -11,7 +11,13 @@ log() { printf "$*\n" ; return $? ; }
fail() { log "\nERROR: $*\n" ; exit 1 ; }
create_home() {
- ievms_home="${HOME}/.ievms"
+ if [[ -z "${INSTALL_PATH}" ]]
+ then
+ ievms_home="${HOME}/.ievms"
+ else
+ ievms_home="${INSTALL_PATH}"
+ fi
+
mkdir -p "${ievms_home}"
cd "${ievms_home}"
}
@@ -150,7 +156,7 @@ build_ievm() {
log "Checking for existing ${vm} VM"
if ! VBoxManage showvminfo "${vm}"
then
-
+
case $kernel in
Darwin) ga_iso="/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso" ;;
Linux) ga_iso="/usr/share/virtualbox/VBoxGuestAdditions.iso" ;;
Something went wrong with that request. Please try again.