Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adding INSTALL_PATH option #30

Merged
merged 3 commits into from Sep 29, 2011
Jump to file or symbol
Failed to load files and symbols.
+16 −2
Split
View
@@ -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
@@ -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" ;;