diff options
author | Jonathan Bauer | 2018-04-18 11:45:01 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-04-18 11:45:01 +0200 |
commit | ab7fc6de8270847fd7264a2b3677131aed24fa7f (patch) | |
tree | d1ab964c71dc746d2babc4b0055534f5fd0ec8f8 /core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox | |
parent | [vbox-src] cleanup snapshot file upon cleanexit (diff) | |
download | mltk-ab7fc6de8270847fd7264a2b3677131aed24fa7f.tar.gz mltk-ab7fc6de8270847fd7264a2b3677131aed24fa7f.tar.xz mltk-ab7fc6de8270847fd7264a2b3677131aed24fa7f.zip |
[vbox-src] changed temporary directory to run-virt scheme
Diffstat (limited to 'core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox')
-rwxr-xr-x | core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/init_core.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/init_core.inc b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/init_core.inc index e55a956e..26408ee1 100755 --- a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/init_core.inc +++ b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/init_core.inc @@ -164,7 +164,8 @@ init_core() { done # Define which features the VMware plugin supports - declare -rg VBOX_ROOT="${TMPDIR}/vbox" # dir for configs + # Session specific dir for VM configs + declare -rg VBOX_ROOT="/tmp/virt/${PLUGIN_ID}/${USER}.$$" declare -rg VBOX_MACHINES_DIR="${VBOX_ROOT}/Machines" declare -rg VBOX_SNAPSHOT_DIR="${VBOX_MACHINES_DIR}/${VM_CLEANNAME}/Snapshots" if ! mkdir -p "${VBOX_SNAPSHOT_DIR}"; then @@ -177,7 +178,8 @@ init_core() { cleanexit 1 fi declare -rg VBOX_HDD_LINK="${VM_DISKFILE_RO}" - export VBOX_USER_HOME="${VBOX_ROOT}" # instead of $HOME/.VirtualBox + # Virtualbox configuration dir instead of $HOME/.VirtualBox + export VBOX_USER_HOME="${VBOX_ROOT}" # xml namespace for vbox configs declare -rg VBOX_NAMESPACE="http://www.virtualbox.org/" |