summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data/opt
diff options
context:
space:
mode:
authorSimon Rettberg2015-05-18 19:05:11 +0200
committerSimon Rettberg2015-05-18 19:05:11 +0200
commitc4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc (patch)
tree67985b287e2b6573a97698a1d345f3833be9fbf6 /remote/modules/vmware/data/opt
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.tar.gz
tm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.tar.xz
tm-scripts-c4a6233acd4fb6ec0d62d95bd6a996f2cb5f79fc.zip
Hardwired path of whoami/id/getent, but we should check all scripts and force PATH in critical ones
Diffstat (limited to 'remote/modules/vmware/data/opt')
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
index 471a207c..3d55fe78 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
@@ -428,7 +428,7 @@ conffile="${confdir}/run-vmware.conf"
# diskfile
diskfile="${vmpath}"
# users vmware config folder
-[ -z "${HOME}" ] && HOME=$(getent passwd "$(whoami)" | awk -F ':' '{print $6}')
+[ -z "${HOME}" ] && HOME=$(/usr/bin/getent passwd "$(/usr/bin/whoami)" | awk -F ':' '{print $6}')
vmhome="${HOME}/.vmware"
# get several version infos for vmware/player