summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt
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/run-virt
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/run-virt')
-rwxr-xr-xremote/modules/run-virt/data/opt/openslx/scripts/vmchooser-run_virt2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/vmchooser-run_virt b/remote/modules/run-virt/data/opt/openslx/scripts/vmchooser-run_virt
index cd13ca81..21c01df6 100755
--- a/remote/modules/run-virt/data/opt/openslx/scripts/vmchooser-run_virt
+++ b/remote/modules/run-virt/data/opt/openslx/scripts/vmchooser-run_virt
@@ -496,7 +496,7 @@ fi >> "${LOGFILE}" 2>&1
# Start printer daemon
QUEUE="STANDARD" # This has to match the queue you configured in your VM
-USER="$(whoami)"
+USER="$(/usr/bin/whoami)"
SPOOLDIR=
### Disabled: 100megs is not enough, some jobs are HUGE, try to use temp which should be on disk
## Try using user's tmpfs home first, as it gets wiped on logout